Hi Folks
I have a problem. I am retrieving files from a server somewhere via FTP onto the iSeries. An example of the file name is 702277810.edi, so I'd want to retrieve 70227781*.edi into either the IFS or a FILE.MBR.
If I try to use FILE.MBR the FTP returns the error "Character (7) not allowed at the beginning of object name." (I guess it's trying to create multiple members using the source file name as the member name.)
This is the script:
NAMEFMT 0
LCD MYLIB
CD /THEIR_DIR
MGET 70227787*.edi TEMP
CLOSE
QUIT
I can get the files into the IFS using this script:
NAMEFMT 1
LCD "/mydir/temp"
CD /THEIR_DIR
MGET 70227787*.edi TEMP
CLOSE
QUIT
...however how can I then merge them together in either one STMF or a DB file? CPYFRMSTMF does not support wild cards.
Any help would be appreciated.
Many thanks
Andy.
I have a problem. I am retrieving files from a server somewhere via FTP onto the iSeries. An example of the file name is 702277810.edi, so I'd want to retrieve 70227781*.edi into either the IFS or a FILE.MBR.
If I try to use FILE.MBR the FTP returns the error "Character (7) not allowed at the beginning of object name." (I guess it's trying to create multiple members using the source file name as the member name.)
This is the script:
NAMEFMT 0
LCD MYLIB
CD /THEIR_DIR
MGET 70227787*.edi TEMP
CLOSE
QUIT
I can get the files into the IFS using this script:
NAMEFMT 1
LCD "/mydir/temp"
CD /THEIR_DIR
MGET 70227787*.edi TEMP
CLOSE
QUIT
...however how can I then merge them together in either one STMF or a DB file? CPYFRMSTMF does not support wild cards.
Any help would be appreciated.
Many thanks
Andy.
Comment