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

Removing hex values


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sun_job

New User


Joined: 18 Sep 2007
Posts: 73
Location: Bangalore

PostPosted: Tue Sep 02, 2008 12:11 pm
Reply with quote

Hi

I would like to know how could we remove Hex values in my input dataset removed .
for eg
1---------------------19-------31
01100028705101GT XF B

there are some hex characters like 'XF' , i want to ahve spaces in the columns 19-31.

Please suggest what to do?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Sep 02, 2008 12:25 pm
Reply with quote

Quote:
there are some hex characters like 'XF'

Whatever you showed seem to be alphabets. Do you want to replace 19-31 with spaces whatever the data it has?

Thanks,
Arun
Back to top
View user's profile Send private message
sun_job

New User


Joined: 18 Sep 2007
Posts: 73
Location: Bangalore

PostPosted: Tue Sep 02, 2008 12:35 pm
Reply with quote

yes i want to replace 19-31 with spaces whatever the data it has with spaces. can u provide me the snippet for the same.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Sep 02, 2008 12:39 pm
Reply with quote

Sun,

The below SORT job would do whatever you asked for .

Code:
//STEP1    EXEC PGM=SORT                         
//SYSOUT   DD SYSOUT=*                           
----+----1----+----2----+----3----+----4----+----5
//SORTIN   DD *                                   
01100028705101GT XF B   FFFFFFFAAAAAAAAAAAAAAAAAAA
//SORTOUT  DD SYSOUT=*                           
//SYSIN    DD *                                   
  SORT FIELDS=COPY                               
  INREC OVERLAY=(19:13X)         

SORTOUT
Code:
01100028705101GT X             AAAAAAAAAAAAAAAAAAA


Thanks,
Arun
Back to top
View user's profile Send private message
sun_job

New User


Joined: 18 Sep 2007
Posts: 73
Location: Bangalore

PostPosted: Tue Sep 02, 2008 1:17 pm
Reply with quote

Thanks arun for ur help
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
Search our Forums:

Back to Top