Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
This topic is locked: you cannot edit posts or make replies. DB2 for Z/OS(set up environment) Pavan kumar chauhan DB2 1 Tue Dec 05, 2017 8:03 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Mainframe Blocks to Tracks conversion upendrasri JCL & VSAM 1 Sat Nov 18, 2017 10:52 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us