Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts question about dfsms management clas... Hervey Martinez IBM Tools 0 Tue Oct 10, 2017 6:19 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us