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
 

 

"DISPLAY with count" question

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
rmd3003

New User


Joined: 03 Jul 2006
Posts: 53

PostPosted: Fri Sep 04, 2009 3:29 am    Post subject: "DISPLAY with count" question
Reply with quote

Does anybody know if I can sort within "DISPLAY with count"?
For example if I have this code:
Code:
DISPLAY FROM(IN) LIST(RPT) BLANK -                 
BTITLE('CLIENT: ') BREAK(17,4,CH) -                 
BCOUNT('TOTAL ITEMS PRE CLIENT: ') EDBCOUNT(U08) - 
HEADER('ITEMS:') ON(6,10,CH) -                     
COUNT('TOTAL ITEMS:') EDCOUNT(U15)                 


I have to pre-sort it by CLIENT before running it otherwise it doesn't work correctly. Is there anywhere I can insert "SORT" here or it has to be separate step?
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: Fri Sep 04, 2009 4:22 am    Post subject:
Reply with quote

It has to be a separate DFSORT/ICETOOL operator.

Code:

//TOOLIN DD *
SORT FROM(IN) TO(T1) USING(CTL1)
DISPLAY FROM(T1) LIST(RPT) ...
//CTL1CNTL DD *
   SORT FIELDS=(...)


where T1 is a temporary data set.

If you want to sort and produce a report in one pass, you can use OUTFIL for that but you have to do more work to set up the report.
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 Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm


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