Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 30
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 Member


Joined: 30 Nov 2013
Posts: 752
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: 7312

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: 1324
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: 30
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 need assistance on a sort rajiv rengasamy SYNCSORT 11 Fri Jul 26, 2019 8:19 pm
No new posts need help with a tricky sort - Continued rajiv rengasamy SYNCSORT 8 Tue Jul 16, 2019 1:26 pm
No new posts Sort records within a data block rajiv rengasamy DFSORT/ICETOOL 0 Fri Jul 12, 2019 3:25 pm
This topic is locked: you cannot edit posts or make replies. need help with a tricky sort. rajiv rengasamy SYNCSORT 7 Fri Jul 12, 2019 12:36 pm
No new posts To remove the spaces using SORT Card dharmaraok DFSORT/ICETOOL 1 Tue Apr 30, 2019 3:42 pm

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