View previous topic :: View next topic
|
Author |
Message |
kodeesm
New User
Joined: 21 Jun 2006 Posts: 5 Location: Pune
|
|
|
|
I am using DSORT tool with TRAILER3 command to convert a amount field from Character to Signed Numeric format & it works as expected. But when an empty input file is processed, an blank single record is written into output file.
Will trailer3 always create a blank record when processing an empty file? Let me know how to avoid a blank record from creation when using TRAILER3 |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
After 12 years on the forum you should know not to post attachments. A simple cut and paste (with the code tags) is ample, less time consuming and less resource-consuming. |
|
Back to top |
|
|
kodeesm
New User
Joined: 21 Jun 2006 Posts: 5 Location: Pune
|
|
|
|
My apologies for the attachement Nic Clouston. I am working on and off on mainframe projects for the last few years.
Can you share your idea how to avoid blank record while processing an empty file when TRAILER3 is present? |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2141 Location: USA
|
|
|
|
You can try to use
Code: |
...,PARM='NULLOUT=RC4' |
to indicate empty file at JCL level with step cond code 4.
I don't remember any option to completely eliminate HEADER/TRAILER records in SORT utilities, even with empty input file. |
|
Back to top |
|
|
|