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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm


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