Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us