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
 

 

FTP multiple PS files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Mon Nov 03, 2008 2:28 pm    Post subject: FTP multiple PS files
Reply with quote

Is it possible to FTP multiple PS files?
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Nov 03, 2008 3:01 pm    Post subject: Reply to: FTP multiple PS files
Reply with quote

Yes. . .

If you ask more of a question and provide some detail, you may receive a more useful answer.

d.sch.
Back to top
View user's profile Send private message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Mon Nov 03, 2008 3:06 pm    Post subject: Reply to: FTP multiple PS files
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Nov 03, 2008 3:30 pm    Post subject:
Reply with quote

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
View user's profile Send private message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Mon Nov 03, 2008 3:55 pm    Post subject:
Reply with quote

//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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Nov 03, 2008 3:58 pm    Post subject: Reply to: FTP multiple PS files
Reply with quote

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
View user's profile Send private message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Mon Nov 03, 2008 4:14 pm    Post subject:
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Nov 03, 2008 4:16 pm    Post subject:
Reply with quote

Why not try it out for yourself ?
Back to top
View user's profile Send private message
sathish1760

New User


Joined: 02 May 2008
Posts: 42
Location: chennai

PostPosted: Mon Nov 03, 2008 5:26 pm    Post subject: Reply to: FTP multiple PS files
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Nov 03, 2008 8:45 pm    Post subject: Reply to: FTP multiple PS files
Reply with quote

Good to hear it is working - thanks for letting us know icon_smile.gif

d
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 Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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