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: 4649
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: 4649
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: 4649
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 SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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