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
 
Generating an o/p file with dummy i/p file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
wiprov

New User


Joined: 13 Feb 2008
Posts: 15
Location: Chennai

PostPosted: Wed Sep 10, 2014 6:16 pm    Post subject: Generating an o/p file with dummy i/p file
Reply with quote

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
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Sep 10, 2014 6:44 pm    Post subject: Reply to: Generating an o/p file with dummy i/p file
Reply with quote

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
View user's profile Send private message
mistah kurtz

Active User


Joined: 28 Jan 2012
Posts: 287
Location: Room: TREE(3). Hilbert's Hotel

PostPosted: Wed Sep 10, 2014 6:47 pm    Post subject:
Reply with quote

Other than what Bill said, you can try this:
Code:
//SORTIN   DD DUMMY,DCB=(RECFM=F,LRECL=80)
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 editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm


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