Create SQL Syntax:
Ø
Local SQL &SelectRec;
Ø
&SelectRec = CreateSQL("Select YEARCD
FROM PS_CB_APAR_ADMIN WHERE EMPLID =:1
OR JOBCODE =:2 and %datein(:3) between START_DATE
AND END_DATE", &Emplid, &Jobcode, %Date, &YearCd);
Ø
While &SelectRec.Fetch(&YearCd);
Ø
Your Code for Selected Rows
Ø
End-While;
Comments
Post a Comment