View previous topic :: View next topic
|
Author |
Message |
sathish1760
New User
Joined: 02 May 2008 Posts: 42 Location: chennai
|
|
|
|
Is it possible to FTP multiple PS files? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Yes. . .
If you ask more of a question and provide some detail, you may receive a more useful answer.
d.sch. |
|
Back to top |
|
|
sathish1760
New User
Joined: 02 May 2008 Posts: 42 Location: chennai
|
|
|
|
Hi Dick,
Thanks for reply.I am having JCL to FTP the whole PDS or one PS. I need the JCL to FTP multiple PS or PDS in a single step. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You can probably use the same jcl.
Just change the ftp control statements to send what you want to the destination (assuming all of the outbound is going to the same remote). |
|
Back to top |
|
|
sathish1760
New User
Joined: 02 May 2008 Posts: 42 Location: chennai
|
|
|
|
//FTPSTEP PGM=FTP,DYNAMNBR=50,PARM='xxx.xxx.xxx'
//OUT DD SYSOUT=*
//AMSDUMP DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSPRINT DD DUMMY
//OUTPUT DD SYSOUT=*
//INPUT DD *
xxxxxx
yyyyy
ASCII
MKDIR 'yyyy.out.pds'
CD 'yyyy.out.pds'
LCD 'xxxx.in.pds'
MPUT *
QUIT
I am using the above JCL to FTP the whole pds.All the members in the pds 'xxxx.in.pds' will be FTPed to 'yyyy.out.pds'.
How can i pass the multiple pds in the above JCL? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
repeat as many times as needed the command sequence used
Code: |
MKDIR 'xxxx.out.pds'
CD 'xxxx.out.pds'
LCD 'xxxx.in.pds'
MPUT *
.............
MKDIR 'zzzz.out.pds'
CD 'zzzz.out.pds'
LCD 'zzzz.in.pds'
MPUT * |
|
|
Back to top |
|
|
sathish1760
New User
Joined: 02 May 2008 Posts: 42 Location: chennai
|
|
|
|
thanks enrico. It is working.Is it possible to FTP a PS file in local system as a PDS member in host system? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why not try it out for yourself ? |
|
Back to top |
|
|
sathish1760
New User
Joined: 02 May 2008 Posts: 42 Location: chennai
|
|
|
|
Hi expat..
I tried that now.. It is also working.
When i tried first, i forgot to specify the host Pds member name.
Thanks you all. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thanks for letting us know
d |
|
Back to top |
|
|
|