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
 

 

separating only the records with hexa decimal value

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: separating only the records with hexa decimal value
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 05, 2009 4:24 pm    Post subject:
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    Post subject: Reply to: separating only the records with hexa decimal valu
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

Site Director


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

PostPosted: Thu Nov 05, 2009 8:56 pm    Post subject:
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 Moderator


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

PostPosted: Thu Nov 05, 2009 11:38 pm    Post subject:
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    Post subject: Reply to: separating only the records with hexa decimal valu
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us