cancel
Showing results for 
Search instead for 
Did you mean: 

How to write dynamic actions for date specifications by calculating the retirement date

0 Kudos

the dynamic actions that I have written for retirement date for the IT 0019 could be calculated properly, but I'm not able to calculate the same for the IT 0041, monitoring of tasks.

Please let me know if there is any other way to calculate for the same.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member94258
Active Participant
0 Kudos

I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)/X

F Get_birth_date(program name)

W P0041-DAR01='99'
W P0041-DAT01=RP50D-DATE1

You can write a subroutine to get the birth date , for example, if the subroutine name is get_birth_date and program name is ABCDEF.

Then statement after F condition can be defined as get_birth_date(ABCDEF).

former_member94258
Active Participant
0 Kudos

Hi,

You want to read a date from 0041 or write a date into 0041 in dynamic action?

Best regards,

Yishun.

0 Kudos

write into IT 41.

by taking the date of birth, it should calculate the retirement age.