View previous topic :: View next topic
|
Author |
Message |
gprerna
New User
Joined: 21 Mar 2007 Posts: 38 Location: US
|
|
|
|
I have a EBCDIC file format which needs to be converted to ASCII format when its sent to a system. Is there any parameter which can be specified in the NDM job to do this conversion? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
No, but the Process you use will need a SYSOPTS parameter specified with XLAT=YES for the COPY step. The SYSOPTS parameter values are unique for the particular SNODE you're communicating with. |
|
Back to top |
|
|
Balakrishnan
New User
Joined: 21 Aug 2009 Posts: 3 Location: US
|
|
|
|
You can use the below piece of code also:
//STEP01 EXEC PGM=IKJEFT01,REGION=512K
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//EBCIN DD DISP=SHR,DSN=USER007.TEST.EBCDIC
//ASCOUT DD DSN=USER007.TEST.FILE1.ASCII,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,DCB=*.EBCIN
// SPACE=(CYL,(10,10),RLSE)
//SYSTSIN DD *
OCOPY INDD(EBCIN) OUTDD(ASCOUT) CONVERT((BPXFX311)) FROM1047
/* |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Is there some reason you prefer copying the entire file rather than letting the transfer do the conversion? |
|
Back to top |
|
|
Balakrishnan
New User
Joined: 21 Aug 2009 Posts: 3 Location: US
|
|
|
|
Not really, we had couple of requirements where we need to change from EBCDIC to ASCII though we were not doing the FTP for that file. SO thought of sharing it with the group. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Thanks for the clarification
d |
|
Back to top |
|
|
|