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
 

 

Keeping Mainframe PS file naming convetion as it-is in MPUT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
GOWTHAM

New User


Joined: 01 Apr 2009
Posts: 4
Location: usa

PostPosted: Fri Oct 23, 2009 8:40 pm    Post subject: Keeping Mainframe PS file naming convetion as it-is in MPUT
Reply with quote

Hi, I'm trying to send multiple sequential files from Mainframe to a local windows based server. for eg. I've following 3 files on mainframe
HLQ.PROD.FILE1
HLQ.PROD.FILE2
HLQ.PROD.FILE3

I'm using the below ftp script..
Host server name
User-ID
password
LCD 'HLQ.PROD' -> First two qualifiers of the Mainframe sequential files
CD '\Test' -> C:\TEST a location on my windows machine
PROMPT INTERACTIVE
MPUT *
QUIT

FTP is successfull, but the file names on my local machine are
FILE1
FILE2
FILE3
Can some one tell me how can we get the exact mainframe file names as it is (as mentioned below) on our local machine by using MPUT
HLQ.PROD.FILE1
HLQ.PROD.FILE2
HLQ.PROD.FILE3

Thanks in advance !!
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Fri Oct 23, 2009 9:01 pm    Post subject:
Reply with quote

What you want to do cannot be done. MPUT only transfers the names at the level you are qualified to. You could individually transfer each file using the fully qualified name, but if you want to use MPUT you cannot get the fully qualified name on the remote side, AFAIK.
Back to top
View user's profile Send private message
GOWTHAM

New User


Joined: 01 Apr 2009
Posts: 4
Location: usa

PostPosted: Sat Oct 24, 2009 2:05 am    Post subject:
Reply with quote

I figured it out... :-)
Once we have the FILE1, FILE2, FILE3 etc in my local machine at C:\temp directory... I was able to rename all those files by prefixing the HLQ & Second level qualifier with the help of a DOS command...

FOR /F "tokens=* delims= " %a IN ('DIR /b *.*') DO REN %a HLQ.PROD.%a

Thanks for your quick response Robert !!
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 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


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