View previous topic :: View next topic
|
Author |
Message |
wiprov
New User
Joined: 13 Feb 2008 Posts: 15 Location: Chennai
|
|
|
|
Hi,
I have to generate an output file, such that it contains current date and time in that....Hence i have given,
Code: |
SORT FIELDS=COPY
OUTREC FIELDS=(1:DATE1,TIME2,X)
|
And the sort card is working properly.
But to generate this output file, we might not require any input file.
When i tried giving DD DUMMY/NULLFILE, it is not writing any record to the output file.
Hence, i have given a dummy input file with a single record.
Can you please let me know, is there any way out to handle this situation?
(generating this output, without using an input file)...
Kindly let me know, if you need any additonal info. Thanks. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
First you have to toss coins in here and read.
Second, instead of using OUTREC BUILD, use OUTFIL and HEADER1 or TRAILER1. They will be produced when there is no data on an OUTFIL group, so you will get data from an empty input dataset. |
|
Back to top |
|
|
mistah kurtz
Active User
Joined: 28 Jan 2012 Posts: 316 Location: Room: TREE(3). Hilbert's Hotel
|
|
|
|
Other than what Bill said, you can try this:
Code: |
//SORTIN DD DUMMY,DCB=(RECFM=F,LRECL=80) |
|
|
Back to top |
|
|
|