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

Find Replace HEXA Values


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
brahmanandarm

New User


Joined: 15 Jun 2009
Posts: 28
Location: bangalore

PostPosted: Thu Feb 03, 2011 2:13 pm
Reply with quote

Hi All,

I have a dataset Record format . . . : VB
Record length . . . : 27994.

I have a hex value of 02
DA5

I would need to delete the values form above ddatasetwhere ever the values comes with 02
DA5

Please advice how to proceed further..
Back to top
View user's profile Send private message
brahmanandarm

New User


Joined: 15 Jun 2009
Posts: 28
Location: bangalore

PostPosted: Thu Feb 03, 2011 2:21 pm
Reply with quote

Sory the hexavalue is
Code:
02
D5

"Code'd"
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Feb 03, 2011 5:34 pm
Reply with quote

is it X'02' or X'D5' or X'02' and X'D5' or is it X'02D5' ?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Feb 03, 2011 9:14 pm
Reply with quote

Hello,

What should be used to "replace" these?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Fri Feb 04, 2011 12:10 am
Reply with quote

brahmanandarm,

If you want to remove X'02' values anywhere in your records, you can use DFSORT statements like this:

Code:

    OPTION COPY
    INREC FINDREP=(IN=X'02',OUT=C'')


If you want to do something else, you need to explain more clearly what exactly it is you want to do.
Back to top
View user's profile Send private message
brahmanandarm

New User


Joined: 15 Jun 2009
Posts: 28
Location: bangalore

PostPosted: Fri Feb 04, 2011 12:52 pm
Reply with quote

Thanks to all,
Now I ahve a new query..

I would need to remove the last characters
Record format . . . : VB
Record length . . . : 4092

Example of the record
Brahma emp1234 salary1234 insurance123412
sunil emp32121 salary2312 insurance12111
kumarswami emp32121 salary2312 insurance9123211

From the above records
I need to remove the value i.e. insurance*******

I want the output to be as
Brahma emp1234 salary1234
sunil emp32121 salary2312
kumarswami emp32121 salary2312

Please advice.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Fri Feb 04, 2011 10:34 pm
Reply with quote

brahmanandarm,

Use the following DFSORT JCL.

Code:

//STEP0100 EXEC PGM=SORT                                             
//SYSOUT   DD SYSOUT=*                                               
//SORTIN   DD DSN=Your Input VB 4092 file,DISP=SHR                                       
//SORTOUT  DD SYSOUT=*                                               
//SYSIN    DD *                                                       
  SORT FIELDS=COPY                                                   
  INREC PARSE=(%01=(ENDBEFR=C'INSURANCE',FIXLEN=4088)),BUILD=(1,4,%01)
  OUTFIL VLTRIM=C' '                                                 
//*
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
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 To find whether record count are true... DFSORT/ICETOOL 6
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
Search our Forums:

Back to Top