MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Report using SORT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
tvssv
Beginner


Joined: 11 Mar 2009
Posts: 58
Topics: 25

PostPosted: Wed May 15, 2019 8:20 am    Post subject: Report using SORT Reply with quote

Hi,

I have input file with attributes RECFM=FB,LRECL=282.

Is it possible to generate REPORT with Header and Trailer.


Code:

H        201904
:
:
:
T        000000937


Trailer should have actual record count leaving Header and Trailer.
The records should be formatted column wise with Field Headings. If possible please provide the sample SORT JCL.

Is it possible to centre the Header and Trailer with some wording?

Thanks
_________________
Thanks
TVSSV
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed May 15, 2019 10:19 am    Post subject: Reply with quote

Do you want sample JCL to execute the sort program or sort control statements to specify what you want sort to do? They are not the same thing. Sample sort JCL can be found in the sort manual.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
tvssv
Beginner


Joined: 11 Mar 2009
Posts: 58
Topics: 25

PostPosted: Wed May 15, 2019 10:54 am    Post subject: Reply with quote

Hi,

Thank You,

Please provide SORT control statements to specify to do sort and get the report.

Thanks
_________________
Thanks
TVSSV
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed May 15, 2019 11:27 am    Post subject: Reply with quote

tvssv wrote:
Hi,

Thank You,

Please provide SORT control statements to specify to do sort and get the report.

Thanks


Please stop asking for complete sort control cards. Please do some homework of looking up the documentation and then look for help if you are stuck.

I am going to provide you a sample this time as a courtesy.

Tvssv,
Code:

//STEP0100 EXEC PGM=SORT                         
//SYSOUT   DD SYSOUT=*                           
//SORTIN   DD DISP=(OLD,PASS),DSN=Your input file fb 282 file.       
//SORTOUT  DD SYSOUT=*                           
//SYSIN    DD *                                   
  OPTION COPY                                     
  OUTFIL REMOVECC,                               
  HEADER1=(141:' SAMPLE HEADER '),               
  TRAILER1=(141:COUNT=(M11,LENGTH=8))             
//*                     


I will leave the exercise of finding the significance of 141 in the control cards for you.


If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080

If you are looking for report generation, check out the chapter "Creating reports with OUTFIL"
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tvssv
Beginner


Joined: 11 Mar 2009
Posts: 58
Topics: 25

PostPosted: Thu May 16, 2019 1:04 am    Post subject: Reply with quote

Hi Kolusu,

Thank You.
_________________
Thanks
TVSSV
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu May 16, 2019 11:23 am    Post subject: Reply with quote

tvssv wrote:
Hi Kolusu,

Thank You.


Did you understand the significance of 141 in the control cards?
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tvssv
Beginner


Joined: 11 Mar 2009
Posts: 58
Topics: 25

PostPosted: Mon May 20, 2019 8:20 am    Post subject: Reply with quote

Hi Kolusu,

141 in the control cards centers the text.

Thanks & Regards
_________________
Thanks
TVSSV
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group