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

Need help in copying record with COMP Fields


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

New User


Joined: 23 Aug 2006
Posts: 13

PostPosted: Thu Nov 05, 2009 8:08 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Nov 05, 2009 8:13 pm
Reply with quote

You would have to use the Hex representation of the required value.
Back to top
View user's profile Send private message
sushidas
Warnings : 2

New User


Joined: 23 Aug 2006
Posts: 13

PostPosted: Thu Nov 05, 2009 8:18 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Nov 05, 2009 8:59 pm
Reply with quote

how about OMIT
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:44 pm
Reply with quote

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
View user's profile Send private message
sushidas
Warnings : 2

New User


Joined: 23 Aug 2006
Posts: 13

PostPosted: Fri Nov 06, 2009 4:04 pm
Reply with quote

Thanks Frank Yaeger
It worked.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Nov 06, 2009 4:27 pm
Reply with quote

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 icon_evil.gif icon_evil.gif icon_evil.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Nov 06, 2009 5:15 pm
Reply with quote

Quote:
removing hatred from this world


it is not hatred. it is contempt.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Nov 06, 2009 5:15 pm
Reply with quote

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
View user's profile Send private message
kaushik8205

New User


Joined: 10 Nov 2006
Posts: 49
Location: Canada

PostPosted: Fri Nov 06, 2009 5:22 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Fri Nov 06, 2009 10:18 pm
Reply with quote

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
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top