Author: pramitdas
Subject: Add system date inside of a PS file at particular column
Posted: Sun Aug 28, 2016 12:06 am (GMT 5.5)
I have the below requirement.
I have a PS file: ABC.BCD.XYZ with the 2 header records.
ABC.BCD.XYZ
_________________________________________
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 ( Date format should be YYMMDD- for e.g. 160828 ) in the first header record at some particular position, Say column no : 60
So my output should look like :
XYZ.XYZ.XYZ
_____________________________________
Details of Employee 160828
Empno EMPid EMPName DEPTName
_____________________________________
Can you please help with this? A sort step or anything?
Please note that I need a simple step to achieve. COBOL/SAS/EZ will not be an option as agreed with Client.
Subject: Add system date inside of a PS file at particular column
Posted: Sun Aug 28, 2016 12:06 am (GMT 5.5)
I have the below requirement.
I have a PS file: ABC.BCD.XYZ with the 2 header records.
ABC.BCD.XYZ
_________________________________________
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 ( Date format should be YYMMDD- for e.g. 160828 ) in the first header record at some particular position, Say column no : 60
So my output should look like :
XYZ.XYZ.XYZ
_____________________________________
Details of Employee 160828
Empno EMPid EMPName DEPTName
_____________________________________
Can you please help with this? A sort step or anything?
Please note that I need a simple step to achieve. COBOL/SAS/EZ will not be an option as agreed with Client.