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

FTP multiple PS files


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

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

Moderator Emeritus


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

PostPosted: Mon Nov 03, 2008 3:01 pm
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
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

Moderator Emeritus


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

PostPosted: Mon Nov 03, 2008 3:30 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 03, 2008 3:58 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Mon Nov 03, 2008 4:16 pm
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
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

Moderator Emeritus


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

PostPosted: Mon Nov 03, 2008 8:45 pm
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 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 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top