View previous topic :: View next topic
|
Author |
Message |
sushidas Warnings : 2 New User
Joined: 23 Aug 2006 Posts: 13
|
|
|
|
Hi,
I want to sort(copy) a file which is having a field declared in COMP.
Can anyone suggest how should I write the sortcard.
For example, for character it is as below
INCLUDE= (1,9,CH,C'AAAAAAAAA')
WHAT would be the syntax if the field is a COMP FIELD (4 BYTE) in the file
THANKS |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You would have to use the Hex representation of the required value. |
|
Back to top |
|
|
sushidas Warnings : 2 New User
Joined: 23 Aug 2006 Posts: 13
|
|
|
|
Actually I have to copy so many record using INCLUDE CONDITION, so getting HEX equivalent will be too hectic.
Is there any other way out? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
how about OMIT |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
sushidas,
If you know the decimal value of the COMP field, you can use that. For example:
Code: |
INCLUDE COND=(1,4,BI,EQ,30,OR,1,4,BI,EQ,12345)
|
BI would be used for unsigned values. FI would be used for signed values.
If that's not what you want to do, then please explain more clearly what you want to do with good examples. |
|
Back to top |
|
|
sushidas Warnings : 2 New User
Joined: 23 Aug 2006 Posts: 13
|
|
|
|
Thanks Frank Yaeger
It worked. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Quote: |
It is better to provide solutions than grumbling...
|
Though it is better.. Why they should????
This is help board not code for me forum |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
removing hatred from this world |
it is not hatred. it is contempt. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Quote: |
but I do not know what people have to prove by ... |
just a hope that people read manual or seach fourm or google before they post. |
|
Back to top |
|
|
kaushik8205
New User
Joined: 10 Nov 2006 Posts: 49 Location: Canada
|
|
|
|
Just wanted to pass some message...
Saying something with a smile does not make you small..
Hope you people will understand.. Rest all depends on individuals how they take it.. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Putting on my Moderator's hat:
We have two DFSORT developers answering questions in the DFSORT Forum, so we don't really need help doing so. If you want to answer questions here with efficient DFSORT/ICETOOL solutions, that's fine (Sambhaji seems to do that quite often). But we don't need anyone here giving generic answers like "read the manual" (the manual is over 800 pages long), taking wild guesses, or (especially) throwing daggers at people. It just wastes space and clutters up the Forum. If you want to "educate" people who don't meet your criteria for the way they ask questions, please do it elsewhere! |
|
Back to top |
|
|
|