Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
RUN TASK to copy a file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics
Author Message
Abhisek_mainframe

New User


Joined: 27 May 2008
Posts: 3
Location: Kolkata

PostPosted: Thu Jul 03, 2008 1:42 pm    Post subject: RUN TASK to copy a file
Reply with quote

Hi,

I have a NDM process that remanes a file using RUN TASK. I guess 'ALTER' is the keyword which renames(not sure). Now, I want this file to be copied and not renamed. Is there a command to do so with RUN TASK. If yes, can anyone give the syntax and explain it?

Thanks
Back to top
View user's profile Send private message
References
Moved: Thu Jul 03, 2008 4:26 pm by superk From JCL to Other Mainframe Topics
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3265
Location: Charlotte,NC USA

PostPosted: Thu Jul 03, 2008 5:24 pm    Post subject: Reply to: RUN TASK to copy a file
Reply with quote

Let's start by you telling us what you know about the RUN TASK statement. What does it do? How does it work?
Back to top
View user's profile Send private message
Abhisek_mainframe

New User


Joined: 27 May 2008
Posts: 3
Location: Kolkata

PostPosted: Thu Jul 03, 2008 6:06 pm    Post subject:
Reply with quote

Most of the times I have seen in our JOBs that its used to trigger a JOB, at the same node or at the SNODE using PGM/UTILITY IOACOND. The above is one case where I found its also renaming a file. This is the only understanding I have
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3265
Location: Charlotte,NC USA

PostPosted: Thu Jul 03, 2008 6:32 pm    Post subject: Reply to: RUN TASK to copy a file
Reply with quote

Quote:

The RUN TASK statement calls external programs to run on a Connect:Direct node. The Process waits until the external program completes before continuing. When the external program completes, the RUN TASK returns a completion code that indicates the program's success. You can pass parameters to the external program.


So, to answer your question. Is there a program available on that node that will perform the file copy you need? If the answer is yes, then you should be able to invoke it, with parameters, via a RUN TASK. Only you and your systems folks are going to be able to answer this. Whoever knows what the ALTER program does can probably help.
Back to top
View user's profile Send private message
Abhisek_mainframe

New User


Joined: 27 May 2008
Posts: 3
Location: Kolkata

PostPosted: Fri Jul 04, 2008 10:12 am    Post subject:
Reply with quote

Thanks for that Kevin. Can you also tell me if DMRTAMS is a utility ? If yes, what does it do
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3265
Location: Charlotte,NC USA

PostPosted: Fri Jul 04, 2008 1:26 pm    Post subject: Reply to: RUN TASK to copy a file
Reply with quote

Never heard of it. You may want to ask Sterling Commerce (www.stercomm.com) to see if it is their module or not.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1