Joined: 13 Mar 2018 Posts: 1 Topics: 1 Location: South Africa
Posted: Thu Jun 21, 2018 6:54 am Post subject: 2 outfiles, different layouts
Hi,
I have a requirement to process an input file and produce :-
1. BACKUP file (exact copy of input file)
2. FORMAT file (created from input.
My problem, is the FORMAT file works fine, however the BACKUP file is a copy of the FORMAT and not the INPUT. I'm using the BUILD instruction.
Please can someone assist.
Your IFTHEN=(WHEN=INIT would have already formatted output to a new length (LDDATE is added upfront) so your IFTHEN=(WHEN for positions 514, 909, 1304, 1699 may NOT be the right positions any more. So you need to readjust the positions of the IFTHEN look up based on the INIT formatting. So it is quite simple to avoid the whole IFTHEN statements and just stick with CHANGE. _________________ Kolusu
www.linkedin.com/in/kolusu
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum