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 Comparing 2 Files using Current time arunsoods DFSORT/ICETOOL 7 Fri Sep 22, 2017 6:00 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm

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