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
 

 

Remove sum fields=none will search for all the record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Brahmananda Reddy Manipi
Currently Banned

New User


Joined: 22 Jul 2008
Posts: 13
Location: Bangalore

PostPosted: Wed Oct 08, 2008 11:58 am    Post subject: Remove sum fields=none will search for all the record
Reply with quote

hi all,

I have an issue with following sort qery

Code:

//DFSPARM DD *
  OPTION VLSHRT                   
  SORT FIELDS=(104,23,CH,A)       
  STOPAFT=20
  INCLUDE COND=(33,3,CH,EQ,C'ABC')
  SUM FIELDS=NONE                 


It will fetch first 20 unic records from the input file since i have given
sum fields = none.
If i remove sum fields=none it will search for all the records (non unique) with above conditions and displays 20 records(output)

my requirement was to display 20 records
could any one help me out
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed Oct 08, 2008 12:22 pm    Post subject:
Reply with quote

Quote:

If i remove sum fields=none it will search for all the records (non unique) with above conditions and displays 20 records(output)



This is what it suppose to do.
Quote:

my requirment was to display 20 records


Do you mean to say you want all the records till count of unique records is 20? please clarify....
Back to top
View user's profile Send private message
Brahmananda Reddy Manipi
Currently Banned

New User


Joined: 22 Jul 2008
Posts: 13
Location: Bangalore

PostPosted: Wed Oct 08, 2008 12:33 pm    Post subject:
Reply with quote

Yes Please!!!!

I want all the record's in out put till count of unique records is 20
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2276
Location: @my desk

PostPosted: Wed Oct 08, 2008 1:19 pm    Post subject:
Reply with quote

Hello,

Use
Code:
OUTFIL ENDREC=20

instead of
Code:
STOPAFT=20
Back to top
View user's profile Send private message
Brahmananda Reddy Manipi
Currently Banned

New User


Joined: 22 Jul 2008
Posts: 13
Location: Bangalore

PostPosted: Wed Oct 08, 2008 1:46 pm    Post subject:
Reply with quote

Arun Thanks a lot !!
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 Oct 08, 2008 8:35 pm    Post subject:
Reply with quote

Brahma,

Note that STOPAFT=20 is processed before sorting and summing takes place. ENDREC=20 is processed after sorting and summing takes place.

See the following for a Figure that shows the order of processing for DFSORT control statements and options. Keep this order in mind when deciding which control statements and options to use.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/FIGSTMTSEQ?SHELF=&DT=20060615185603&CASE=&ScrollTOP=FIGSTMTSEQ#FIGSTMTSEQ
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 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
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Sum Fields ballaswaroop DFSORT/ICETOOL 4 Tue May 02, 2017 11:07 am
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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