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
 

 

How to use SORT when SORTIN is DUMMY

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
MSTP

New User


Joined: 21 Jun 2007
Posts: 29
Location: Baltimore

PostPosted: Wed Jul 23, 2014 9:29 am    Post subject: How to use SORT when SORTIN is DUMMY
Reply with quote

My SORTIN is DUMMY and I want to create a SORTOUT file with current system date. My SORTOUT is empty .Please look into SYSOUT attached and advise.


Thanks
MSTP
Back to top
View user's profile Send private message

steve-myers

Active User


Joined: 30 Nov 2013
Posts: 494
Location: The Universe

PostPosted: Wed Jul 23, 2014 12:25 pm    Post subject:
Reply with quote

It's usually not a good idea to use attachments. Many of us cannot or will not download them. Try placing the output into a code group using code tags, like this -
Code:
These
     messages
             are
                embedded
                        in
                          code
                              tags
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Wed Jul 23, 2014 12:50 pm    Post subject: Reply to: How to use SORT when SORTIN is DUMMY
Reply with quote

If you have DUMMY, there is no data to process. The only way to get the step to do anything is to use OUTFIL reporting functions, HEADER1 or TRAILER1. You'll probably want REMOVECC as well.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1226
Location: Israel

PostPosted: Wed Jul 23, 2014 1:21 pm    Post subject: Reply to: How to use SORT when SORTIN is DUMMY
Reply with quote

I can't even see the attachment, but I tried anyway.

First test:
Code:
//STEP01   EXEC PGM=SYNCSORT                   
//SORTIN   DD   DUMMY                         
//SORTOUT  DD   SYSOUT=*                       
//SYSOUT   DD   SYSOUT=*                       
//SYSIN    DD   *                             
   SORT   FIELDS=COPY                         
   OUTFIL NODETAIL,TRAILER1=(' DATE IS ',&DATE)
just gave me a rc of 16:
Code:
WER189A  SORTIN   DCB RECFM REQUIRED                   
WER108I  SORTIN   : RECFM=     ; LRECL=      ; BLKSIZE=
WER073I  SORTIN   : DSNAME=NULLFILE                     

So I tried again with:
Code:
//STEP01   EXEC PGM=SYNCSORT                   
//SORTIN   DD   DUMMY,DCB=(RECFM=F,LRECL=80)   
//SORTOUT  DD   SYSOUT=*                       
//SYSPRINT DD   SYSOUT=*                       
//SYSOUT   DD   SYSOUT=*                       
//SYSIN    DD   *                             
   SORT   FIELDS=COPY                         
   OUTFIL NODETAIL,TRAILER1=(' DATE IS ',&DATE)
and this time I got my SORTOUT:
Code:
 DATE IS 07/23/14
Back to top
View user's profile Send private message
MSTP

New User


Joined: 21 Jun 2007
Posts: 29
Location: Baltimore

PostPosted: Wed Jul 23, 2014 10:01 pm    Post subject: Reply to: How to use SORT when SORTIN is DUMMY
Reply with quote

Thank you Bill and Marso for guiding me as your suggestion worked for me.I will try to post the code next time instead of attachments.

thanks
MSTP
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 -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am


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