Hi All,
I have one requirement ,like If an employee is terminated Today this employee has to send to Output file forperiod of 30 days ,after 30 days employee should drop of the file.
I have written the code in SQR like below
let $date1=dateadd(datenow(),'Day',30)
if $Current-date<=$date1
Let $write-flag1='Y'
end-if
but this SQR will run every day so the value of the Datenow() function will vary every day.so it is not working as per the above code
can any one Guide me How to Put condition from current date to 30 days in the SQR
Thanks in advance
suma
| Title | Under | Posted on |
|---|---|---|
| MD5 - SHA checksum of a file. | PeopleSoft Technical | 02/07/2012 - 5:29am |
| nVision Tabular Report through PIA with prompts | PeopleSoft Technical | 02/02/2012 - 10:07pm |
| Can we create an AE to mass update Position - Jobcode data? | PeopleSoft Technical | 01/18/2012 - 3:11am |
| Pay Components on job data can be defaulted and setup based on the rules? | PeopleSoft Functional | 01/05/2012 - 4:58am |
Hi Suma,
You can achieve this in two ways.
1. Modify your SQL to select the employees who have been terminated in past 30 days
e.g.
where ACTION = 'TER'
and ACTION_DT between sysdate-30 and sysdate
2. You can use your existing logic, just replace datenow() with some date value like action date or effdt of termination row.
Does this make some sense to you, If not let me know I would explain it.
Regards,
Rahul Khandelwal
Post new comment