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
 

 

Removing hex values

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Removing hex values
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: 2239
Location: @my desk

PostPosted: Tue Sep 02, 2008 12:25 pm    Post subject:
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    Post subject: Hi
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: 2239
Location: @my desk

PostPosted: Tue Sep 02, 2008 12:39 pm    Post subject:
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    Post subject: HI
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM 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