Page 1 of 1

FTP all members of PDS to remote server

PostPosted: Sat May 10, 2008 12:03 am
by hhcoope
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?

Re: FTP all members of PDS to remote server

PostPosted: Sat May 10, 2008 2:19 am
by MrSpock
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.