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
 

 

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 Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts how to mask the phone number kumarinfy DB2 4 Mon Apr 03, 2017 5:23 pm
No new posts what is meaning of the number in dcl Martylin PL/I & Assembler 2 Thu Mar 09, 2017 7:18 am


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