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 Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm


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