Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Specify the number of records in the INCLUDE statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
vinodkrs

New User


Joined: 25 Mar 2008
Posts: 10
Location: india

PostPosted: Wed Apr 02, 2008 8:56 pm    Post subject: Specify the number of records in the INCLUDE statement
Reply with quote

Hi,
can anyone tell how to specify the number of records in the INCLUDE statement.
i need only one record satisfying the below condition

SORT FIELDS =(1,33,CH,A,34,4,UFF, A,38,21,CH,A,63,88,CH,A)
INCLUDE COND=(1,1,CH,EQ,C' T4’)
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Apr 02, 2008 9:36 pm    Post subject:
Reply with quote

How about the stop after parameter?
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: Wed Apr 02, 2008 9:38 pm    Post subject:
Reply with quote

Your INCLUDE statement should be:

Code:

   INCLUDE COND=(1,2,CH,EQ,C'T2')


so the length of the field (2) matches the length of the constant.

It's not clear what you want to do.

Do you want only one record in the output file (the first record that has 'T4' in positions 1-2)? If so, you can use:

Code:

   OPTION STOPAFT=1


to only get that record in the output file. (Of course, if that's the case, then I have to wonder why you're doing a sort for only one record rather than a copy).

Or do you want the output file to have only one record with 'T4' in 1-2, and all of the other records that don't have 'T4' in 1-2?

Please clarify what you want. An example of input and output would help. Also what is the RECFM and LRECL of the input file?
Back to top
View user's profile Send private message
vinodkrs

New User


Joined: 25 Mar 2008
Posts: 10
Location: india

PostPosted: Thu Apr 03, 2008 10:41 am    Post subject:
Reply with quote

Sorry for the error, the length of the field is 2.
I can do this by copy option. Thanks a lot.

Regards,
Vinod
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 Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 9 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us