View previous topic :: View next topic
|
Author |
Message |
shalva.krish
New User
Joined: 30 Aug 2023 Posts: 3 Location: USA
|
|
|
|
Dear Sir ,
I am using BPXBATCH utility for SFTP the file from mainframe to windows server, facing issue for binary files having packed decimals values , output formatting is not same and downstream process on windows is failing while validating the file.
I have used below in configuration to tackle binary file in BPXBATCH config
EOL=nl;
IMAGE=binary;
Batch job is completing successful. While validating the file , I see some junk characters & position of the data is getting shifted .
Please advise .
Regards
Shalva |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
Please try without using EOL |
|
Back to top |
|
|
Faizanazam
New User
Joined: 06 Apr 2024 Posts: 7 Location: United States
|
|
|
|
Hi Sir,
As suggested , we tried running job without using EOL, but job failed with message "EDC5129I No such file or directory. (errno2=0x053B006C)"
But if EOL is added in config then job is completing successfully and transferring file but in bad format |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
Would you mind to share the Job you are using? It might help to look up things here and there. |
|
Back to top |
|
|
Faizanazam
New User
Joined: 06 Apr 2024 Posts: 7 Location: United States
|
|
|
|
JCL
//STEP01 EXEC PGM=BPXBATCH
//STDPARM DD DSN=***.***.SFTPCP.GET,DISP=SHR
// DD DSN=***.***.SFTP.PARM,DISP=SHR
//STDIN DD DUMMY
//STDOUT DD DSN===*******.***.SFTP.PUT.OUT,
// DISP=(NEW,CATLG,CATLG),
// DCB=(RECFM=FB,LRECL=255,BLKSIZE=0),
// DATACLAS=MB020E
//STDERR DD DSN===*******.***.SFTP.PUT.ERR,
// DISP=(NEW,CATLG,CATLG),
// DCB=(RECFM=FB,LRECL=255,BLKSIZE=0),
// DATACLAS=MB020E
//SYSPRINT DD SYSOUT=*
//
Content of GET file "***.***.SFTPCP.GET"
sh SYS=ABC;
JOBNAME=XYZABC;
LOCALDATASET=ABCD.EFGH.DAILY.DT0503VB2;
LOCALPATH=/**pl/abc/devl/sftp/tmp/;
CONFIG=/**pl/abc/devl/sftp/.ssh/config;
REMOTEFILENAME=ABCD.EFGH.DAILY.DT0503VB2.bin;
RP=/;
EOL=nl;
IMAGE=binary; |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2141 Location: USA
|
|
|
|
1) Please, learn how to use the Code button -
Faizanazam wrote: |
JCL
Code: |
//STEP01 EXEC PGM=BPXBATCH
//STDPARM DD DSN=***.***.SFTPCP.GET,DISP=SHR
// DD DSN=***.***.SFTP.PARM,DISP=SHR
//STDIN DD DUMMY
//STDOUT DD DSN===*******.***.SFTP.PUT.OUT,
// DISP=(NEW,CATLG,CATLG),
// DCB=(RECFM=FB,LRECL=255,BLKSIZE=0),
// DATACLAS=MB020E
//STDERR DD DSN===*******.***.SFTP.PUT.ERR,
// DISP=(NEW,CATLG,CATLG),
// DCB=(RECFM=FB,LRECL=255,BLKSIZE=0),
// DATACLAS=MB020E
//SYSPRINT DD SYSOUT=*
//
|
Content of GET file "***.***.SFTPCP.GET"
Code: |
sh SYS=ABC;
JOBNAME=XYZABC;
LOCALDATASET=ABCD.EFGH.DAILY.DT0503VB2;
LOCALPATH=/**pl/abc/devl/sftp/tmp/;
CONFIG=/**pl/abc/devl/sftp/.ssh/config;
REMOTEFILENAME=ABCD.EFGH.DAILY.DT0503VB2.bin;
RP=/;
EOL=nl;
IMAGE=binary; |
|
2) Please, add also all produced logs, and all error messages (if any) |
|
Back to top |
|
|
Faizanazam
New User
Joined: 06 Apr 2024 Posts: 7 Location: United States
|
|
|
|
Hi ,
I tried changing below configuration for binary files and it worked fine. Thanks for your help.
EOL=bin;
IMAGE=binary; |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
|
|
|
|
Thanks for the feedback. |
|
Back to top |
|
|
|