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: 2126
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: 388
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 Transferring file to Mainframes Shinoj Vijayakumar IBM Tools 3 Thu Dec 06, 2018 2:35 pm
No new posts Convert VBA file to FB! Vignesh Sid SYNCSORT 5 Mon Dec 03, 2018 1:27 pm
No new posts Problem with OVERLAY - BI on SMF Record Ghellar DFSORT/ICETOOL 4 Sat Dec 01, 2018 9:41 pm
No new posts Propagating value from nth record to ... ganasrinivasan DFSORT/ICETOOL 7 Fri Nov 30, 2018 8:31 am
No new posts Previous record x current record jackare SYNCSORT 1 Thu Nov 29, 2018 7:56 am

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