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
 
Changing Numeric value in to Hex Value

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Hari Kumar

New User


Joined: 28 Jul 2005
Posts: 19

PostPosted: Fri Dec 22, 2006 11:20 am    Post subject: Changing Numeric value in to Hex Value
Reply with quote

Hi,

I have one input with first two char as numeric value.

INPUT

00AAAA
01BBBB
02VVVV
12AAAA

O/p file should contain only in below mentioned format

OUTPUT

F000AAAA [ First two chars changed from numeric to Hex value]
F001BBBB
F002VVVV
F1F2AAAA

Basically the first 2 chars in a file needs to be changed to the hex value.


Please provide sysin card for this.
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Fri Dec 22, 2006 11:42 am    Post subject:
Reply with quote

Hi there,

Please find the attached sysin card . I assumed that record length of i/p file is 80 bytes

Code:
OPTION COPY             
  OUTFIL OUTREC=(1:1,2,HEX,
  5:3,78)   
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Dec 22, 2006 9:20 pm    Post subject:
Reply with quote

Hari,

Ekta's DFSORT statements will do what you asked for. But you have the output wrong. It will be:

Code:

F0F0AAAA 
F0F1BBBB 
F0F2VVVV 
F1F2AAAA 
Back to top
View user's profile Send private message
Hari Kumar

New User


Joined: 28 Jul 2005
Posts: 19

PostPosted: Fri Dec 29, 2006 3:09 pm    Post subject:
Reply with quote

Its working. Thanks a lot and happy new year wishes
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 5 Sat Aug 19, 2017 2:33 pm
No new posts Select numeric portion from CHAR data... balaji81_k DB2 6 Sat Aug 19, 2017 1:51 am

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