I have a problem with FTP.
I need to download a file/files from Windows server to Mainframe server using MGET.
Unfortunalely my file/files located on Windows server have long names (longer than 8 characters) and I can't change length of filenames.
My JOB:
//TESTFTP JOB (PK000U),'MBA FIL',CLASS=A,MSGCLASS=X
//FTPEXEC1 EXEC PGM=FTP,
// PARM='10.3.4.112, (TRACE'
//SYSPRINT DD SYSOUT=*
//SYSTCPD DD DSN=SYS1.TCPP(TCPDATX),DISP=SHR
//SYSFTPD DD DSN=SYS1.TCPP(FTPPOLX),DISP=SHR
//SYSIN DD *
test test1234
cd /transfer/in/sfa/
locsite recfm=fb
locsite prim=500
locsite sec=500
locsite lrecl=1010
mget MBA_INPUT_FILE_201604*.txt
close
quit
/*
I got that answer:
CG4060 rcvFile: local name conversion error (9)
CG4082 SETCEC code = 18
EZA1685W Invalid local file identifier
PC0384 parseCmd: parameter 1: lrecl=1010
EZA2280W BLOCKSIze must be a multiple of LRecl for FB data sets. BLOCKSIze set
EZA1460I Command:
EZA1736I mget MBA_INPUT_PILE_201604*.txt
PC0359 parseCmd: subcommand: mget
PC0384 parseCmd: parameter 1: MBA_INPUT_PILE_201604*.txt
SC1349 initDsConnection: entered
EZA1701I >>> PORT 10,249,5,2,53,12
200 PORT command successful.
EZA1701I >>> NLST MBA_INPUT_PILE_201604*.txt
150 Opening ASCII mode data connection for file list.
SC1854 accDsConnection: entered
GU4946 ftpSetApplData: entered
SC2655 dataClose: entered
226 Transfer complete.
CG0249 get: F=1 p=FSA ARTWT=00001
CG3910 rcvFile: entered
MR1393 set_filename: entered with pathname MBA_INPUT_PILE_20160429.txt
CG4060 rcvFile: local name conversion error (9)
CG4082 SETCEC code = 18
EZA1685W Invalid local file identifier
EZA1460I Command:
EZA1736I close
PC0359 parseCmd: subcommand: close
CZ1342 ftpClose: entered
EZA1701I >>> QUIT
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 497 bytes in 1 transfers.
221-Thank you for using the FTP service on trandb1.
221 Goodbye.
SC3376 endSession: entered (sn=172E37D0)
CU2889 write_smf_record: entered with type -3.
CU1882 write_smfTable_record_119: entered with table index 2.
CU1694 subtype_103: entered
CU1752 build_security_section: entered
SC2655 dataClose: entered
EZA1460I Command:
EZA1736I quit
PC0359 parseCmd: subcommand: quit
CX0383 main: RC=00000 cmd_in_progress=100
CX0386 main: last_reply= err=00
CZ1270 ftpQuit: entered
CZ1342 ftpClose: entered
CZ1342 ftpClose: entered
CX0516 removeAff: entered
File/files can't be downloaded to mainframe because have too long names. Is there any way to cut filenames to 8 characters or any other way to get file/files to mainframe? Maybe it is possible to define new filenames (or any file mask) on local side (on mainframe)?
Piter