FTP all members of PDS to remote server



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

FTP all members of PDS to remote server

Postby hhcoope » Sat May 10, 2008 12:03 am

I'm FTPing all members of a PDS to a remote server with the same folder name as the PDS. Have used the LCD command to list all members of the PDS, then used the MPUT * command to output these to the remote server. Everything works fine, except I need to append a ".txt" extension to all the member/file names. How can I do this?
hhcoope
 
Posts: 1
Joined: Fri May 09, 2008 11:52 pm
Has thanked: 0 time
Been thanked: 0 time

Re: FTP all members of PDS to remote server

Postby MrSpock » Sat May 10, 2008 2:19 am

You can either:

A. Copy the PDS members to unique sequential datasets with the .TXT entension added to the dataset name. Then, you can mput * all of those datasets.

B. Put each member one-at-a-time to the remote filename with an appropriate file extension added to the filename.

C. Do what you've already done, and then run a script command on the remote server to rename all of the files in that folder with the additional .txt file extension.
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post