IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

RUN TASK to copy a file


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Jul 03, 2008 5:24 pm
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
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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Jul 03, 2008 6:32 pm
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
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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Jul 04, 2008 1:26 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top