Hi All
iam new to cobol could you please help to get the cobol code for below requirement
i have filed in DB2 table. the filed should be update based on below requirement
the job will run every week in month. first it will read Mainframe system date then we have write below codes based on the condition
Mar Month End data - Q
June Month data - Q
September month End data - Q
December Month end data - Y
Rest of the month end data - M
example: suppose i will take January 2019
the job will run on 01/01/2019 the field value is 'Y' (it will take previous year last week data)
the job will run on 01/05/2019 the field value is 'C'
the job will run on 01/12/2019 the field value is 'C'
the job will run on 01/19/2019 the field value is 'C'
the job will run on 01/26/2019 the field value is 'C'
the job will run on 02/01/2019 the field value is 'M'(it will take previous month end data)
please help some one to get this ocde that would be appriciate?