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
 

 

JCL - SORTIN DD Dummy possible?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    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

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Referback the DCB of SORTIN while usi... venksiv CLIST & REXX 7 Tue Mar 15, 2016 5:47 pm
No new posts insert dummy record(Low values) to PS... useit DFSORT/ICETOOL 3 Wed Sep 24, 2014 4:20 pm


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