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

separating only the records with hexa decimal value


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

New User


Joined: 24 Nov 2005
Posts: 49
Location: chennai

PostPosted: Thu Nov 05, 2009 4:19 pm
Reply with quote

Hi,

I have a variable record length file of 2048 bytes.Records in this file are in hexadecimal format. I need to seperate only those records which has values '777C' into a output file.I dont know the exact field position.Please suggest me a solution.

regards,
Akash
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 05, 2009 4:24 pm
Reply with quote

Search the forum using the words search substring
indicate the box that says all keywords
And many excellent examples will appear
Back to top
View user's profile Send private message
akashs

New User


Joined: 24 Nov 2005
Posts: 49
Location: chennai

PostPosted: Thu Nov 05, 2009 4:30 pm
Reply with quote

Hi Expat,

There is no links in this forum that has SS command for Hexa decimals.
They have given SS only for chracter strings.

regards,
sathish
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 Nov 05, 2009 8:56 pm
Reply with quote

Hello,

Define the value as a hex constant rather than a character constant. . .

Quote:
There is no links in this forum that has SS command for Hexa decimals.
They have given SS only for chracter strings.
Yes, there are. . . You just didn't take the time. . .

Quote:
For example if the S9(4) COMP variable value is 202 I can give
(5,10000,SS,EQ,X'F8F900CAF0F1')


The info is also in the DSFORT documentation.

Had you looked at either, you would have had an answer hours ago and not still be waiting. . .
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: Thu Nov 05, 2009 11:38 pm
Reply with quote

sathish,

You can use these DFSORT statements:

Code:

   OPTION COPY
   INCLUDE COND=(1,2048,SS,EQ,X'777C')
Back to top
View user's profile Send private message
akashs

New User


Joined: 24 Nov 2005
Posts: 49
Location: chennai

PostPosted: Fri Nov 06, 2009 3:12 pm
Reply with quote

Hi Frank,

Thank u very much..the code worked fine now

regards,
akash
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top