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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm

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