IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL - SORTIN DD Dummy possible?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivaplv

New User


Joined: 15 Mar 2005
Posts: 17
Location: Toronto, Canada

PostPosted: Fri Mar 18, 2005 1:03 pm
Reply with quote

Hi,

I am using DFSORT to create one line file with system date and time. I have coded OUTREC parameters to acheive this. But SORT is asking to give a SORTIN file. I don't want to use the last runs's SYSOUT file as this run's SORTIN.

Is there a way out to achieve this without using any real SORTIN file?

Thanks,
Siva.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Mar 18, 2005 10:16 pm
Reply with quote

There are two way to do this with DFSORT.

1) You can use HEADER1 to create the date record instead of OUTREC. For example:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DUMMY,RECFM=FB,LRECL=n,BLKSIZE=n
//SORTOUT DD DSN=...  output file
//SYSIN    DD    *
  OPTION COPY
  OUTFIL REMOVECC,NODETAIL,HEADER1=(date,time)
/*


where n is the LRECL you want for SORTOUT, and date and time are any of DFSORT's HEADER1 date and time parameters.

2) You can use OUTREC with one dummy SORTIN record. For example:

Code:

//S2    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD *
DUMMY
/*
//SORTOUT DD DSN=...  output file
//SYSIN    DD    *
  OPTION COPY
  OUTREC FIELDS=(date,time)
/*


where date and time are any of DFSORT's OUTREC date and time parameters.
Back to top
View user's profile Send private message
sivaplv

New User


Joined: 15 Mar 2005
Posts: 17
Location: Toronto, Canada

PostPosted: Sun Mar 20, 2005 10:06 am
Reply with quote

Hi,

Thanks. The solution for moderator worked for me.

Regards,
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Dynamic Sortin DD cards SYNCSORT 8
No new posts DUMMY When do I need add a DCB parameter JCL & VSAM 3
No new posts Can you write 2 recs on SORTOUT when ... DFSORT/ICETOOL 6
No new posts DD DUMMY & CPU TIME Testing & Performance 16
No new posts Sticky: Difference between DUMMY and NULLFILE JCL & VSAM 0
Search our Forums:

Back to Top