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 pds files from mainframe to an AIX environment

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
nanarr12

New User


Joined: 05 Aug 2005
Posts: 2

PostPosted: Fri Aug 05, 2005 8:13 pm    Post subject: FTP multiple pds files from mainframe to an AIX environment
Reply with quote

Is there a way to ftp multiple files to an AIX environment using wildcards. I have the JCL written but it doesn't know what to name the file in the directory on the AIX box. I am using the mput command below:

MPUT 'PFISISC.PROD20.SOURCLIB(SADCG*)' /home/narrighi

When this is ran in my jcl, it is ftping the following in my directory:

'PFISISC.PROD20.SOURCLIB(SADCGPA)'
'PFISISC.PROD20.SOURCLIB(SADCGPB)'
'PFISISC.PROD20.SOURCLIB(SADCGPT)'

However, when I try to look at them on the AIX box, they are empty. Also, it will not let me remove them from my directory.

Thanks,
Nanarr
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Sat Aug 06, 2005 12:56 am    Post subject: Re: FTP multiple pds files from mainframe to an AIX environm
Reply with quote

First of all, let me just mention that the MPUT command is working as it is supposed to.

To solve your problem, your PDS should be known to the FTP client as the local directory:

- open the connection and log in.

- change to non-interactive:

>prompt interactive

- change the target working directory with a CD command:

>cd /home/narrighi
<< or >>
>cd /home, then >cd narrighi

- change the host working directory with a LCD command:

>lcd 'PFISISC.PROD20.SOURCLIB'

- MPUT the PDS members, which will become the target filenames:

>mput SADCG*

- quit and end.
Back to top
View user's profile Send private message
nanarr12

New User


Joined: 05 Aug 2005
Posts: 2

PostPosted: Fri Aug 12, 2005 10:46 pm    Post subject: Re: FTP multiple pds files from mainframe to an AIX environm
Reply with quote

Thanks superk,

That is exactly what I needed and it works great.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am


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