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
I'm using the below ftp script..
Host server name
LCD 'HLQ.PROD' -> First two qualifiers of the Mainframe sequential files
CD '\Test' -> C:\TEST a location on my windows machine
FTP is successfull, but the file names on my local machine are
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
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.
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