Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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: 2235
Location: Hampshire, 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 Member


Joined: 29 Apr 2008
Posts: 564
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 How to place name of the file where t... danielgp89 DFSORT/ICETOOL 14 Thu Oct 17, 2019 12:55 am
No new posts Need help in parsing record in VBA file guptae DFSORT/ICETOOL 4 Fri Oct 11, 2019 2:31 pm
No new posts Report generation using TRAILER3 Krishnadeva Reddy DFSORT/ICETOOL 2 Sat Oct 05, 2019 2:24 am
No new posts What 'EF' in the CAFC command REGION,... vrkratheesh CICS 2 Wed Sep 18, 2019 4:52 pm
No new posts Can we pass the value of Symbolic par... Poha Eater JCL & VSAM 5 Thu Sep 05, 2019 2:21 pm

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