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: 2238
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 Record Not found in AlX but record re... mukun264 COBOL Programming 2 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


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