View previous topic :: View next topic
|
Author |
Message |
KsquareD
New User
Joined: 14 Feb 2008 Posts: 4 Location: India
|
|
|
|
Hi all
Can anyone tell me the procedure to convert the characters in a record of a file into their equivalent ASCII values
Example: 'A' will be converted to 65 and likewise..
Thanx in advance |
|
Back to top |
|
|
shankar.v
Active User
Joined: 25 Jun 2007 Posts: 196 Location: Bangalore
|
|
|
|
Hi KsquareD,
Please chek with the following code for your requirement.
Code: |
// EXEC PGM=IKJEFT01
//INFILE DD DSN=INFILE,DISP=SHR
//OUTFILE DD DSN=OUTFILE,DISP=...
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
OCOPY INDD(INFILE) OUTDD(OUTFILE) TEXT CONVERT((BPXFX311)) FROM1047
/*
// |
Thanks,
Shankar |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
|