Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
TRAILER3 is creating blank record in the output file w

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

New User


Joined: 21 Jun 2006
Posts: 5
Location: Pune

PostPosted: Fri May 18, 2018 5:45 pm    Post subject: TRAILER3 is creating blank record in the output file w
Reply with quote

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

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2020
Location: UK

PostPosted: Fri May 18, 2018 7:15 pm    Post subject: Reply to: TRAILER3 is creating blank record in the output file w
Reply with quote

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

New User


Joined: 21 Jun 2006
Posts: 5
Location: Pune

PostPosted: Fri May 18, 2018 7:26 pm    Post subject: TRAILER3 is creating blank record in the output file Read m
Reply with quote

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

Active User


Joined: 29 Apr 2008
Posts: 309
Location: Maryland

PostPosted: Sat May 19, 2018 2:56 am    Post subject:
Reply with quote

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
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 B059 PREMATURE END OF FILE mvmadhuvenkatesh CA Products 5 Tue Jun 19, 2018 10:50 am
No new posts Formating output file Niki DFSORT/ICETOOL 3 Fri Jun 15, 2018 3:27 pm
No new posts Need help on TDQ load from file using... subratarec CICS 4 Wed Jun 13, 2018 11:32 pm
No new posts Reformat clause in joinkeys sortcard ... Mounika Nemani DFSORT/ICETOOL 2 Thu May 31, 2018 5:35 pm
No new posts How to Count a particular record in a... Mounika Nemani DFSORT/ICETOOL 5 Tue May 29, 2018 1:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us