Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Conversion of characters to their equivalent ASCII values

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Conversion of characters to their equivalent ASCII values
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    Post subject:
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

Moderator Team Head


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

PostPosted: Fri Feb 22, 2008 5:48 pm    Post subject: Reply to: Conversion of characters to their equivalent ASCII
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us