|
View previous topic :: View next topic
|
| Author |
Message |
akashs
New User

Joined: 24 Nov 2005 Posts: 49 Location: chennai
|
|
|
|
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 |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
Search the forum using the words search substring
indicate the box that says all keywords
And many excellent examples will appear |
|
| Back to top |
|
 |
akashs
New User

Joined: 24 Nov 2005 Posts: 49 Location: chennai
|
|
|
|
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 |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
sathish,
You can use these DFSORT statements:
| Code: |
OPTION COPY
INCLUDE COND=(1,2048,SS,EQ,X'777C')
|
|
|
| Back to top |
|
 |
akashs
New User

Joined: 24 Nov 2005 Posts: 49 Location: chennai
|
|
|
|
Hi Frank,
Thank u very much..the code worked fine now
regards,
akash |
|
| Back to top |
|
 |
|
|