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
 

 

Need help in copying record with COMP Fields

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Need help in copying record with COMP Fields
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 05, 2009 8:13 pm    Post subject:
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    Post subject: Reply to: NEED HELP IN COPYING RECORD
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: 6968
Location: porcelain throne

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

how about OMIT
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:44 pm    Post subject:
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    Post subject:
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Fri Nov 06, 2009 5:15 pm    Post subject:
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    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Fri Nov 06, 2009 10:18 pm    Post subject:
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    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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am


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