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
 
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: 2285
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: 2285
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 Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 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
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am

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