IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Conversion of characters to their equivalent ASCII values


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
KsquareD

New User


Joined: 14 Feb 2008
Posts: 4
Location: India

PostPosted: Fri Feb 22, 2008 11:10 am
Reply with quote

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
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Fri Feb 22, 2008 2:13 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Feb 22, 2008 5:48 pm
Reply with quote

See this previous topic for some more options.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
Search our Forums:

Back to Top