Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a requirement.
I have a file ;ABC.BCD.XYZ with the 2 header lines

Details of Employee
Empno EMPid EMPName DEPTName

I need to copy this header to another file: XYZ.XYZ.XYZ but I need to add current date (YYMMDD ) format in the first header record at some particular position.
Say column no : 60
SO my output should look like :

Details of Employee 160821
Empno EMPid EMPName DEPTName

Can you please help with this? A sort step or anything? Even A EasyTrieve can be helpful also.

Please note that I have a date control card ABC.XYZ.BBB( DATE ) with the below record layout. Please note that I need a simple step to achieve. COBOL or SAS will not be an option as agreed with Client.

ABC.XYZ.BBB( DATE )
-----------------------------
20160821

What I have tried:

Copy part is done thru IEBGENER step and I cannot be able to add the date.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900