Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
JCL - SORTIN DD Dummy possible?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
sivaplv

New User


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

PostPosted: Fri Mar 18, 2005 1:03 pm    Post subject: JCL - SORTIN DD Dummy possible?
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
References
PostPosted: Fri Mar 18, 2005 1:03 pm    Post subject: Re: JCL - SORTIN DD Dummy possible? Reply with quote

Frank Yaeger

DFSORT Moderator


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

PostPosted: Fri Mar 18, 2005 10:16 pm    Post subject:
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    Post subject: Re: (Resolved) JCL - SORTIN DD Dummy possible?
Reply with quote

Hi,

Thanks. The solution for moderator worked for me.

Regards,
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1