Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 -> All Other Mainframe Topics
View previous topic :: :: View next topic  
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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, 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: 4648
Location: Raleigh, 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: 4648
Location: Raleigh, 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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us