Prefill roster column from another roster
Posted: October 3rd, 2023, 8:10 am
Hi everyone,
I want to prefill a roster row from the firs roster based on a condition (If a row fills a condition, then add it to the second roster).
The picture shows the problem i get.
How to do for not having these empty rows ?
Here's my code :
I need your help
I want to prefill a roster row from the firs roster based on a condition (If a row fills a condition, then add it to the second roster).
The picture shows the problem i get.
How to do for not having these empty rows ?
Here's my code :
Code: Select all
PROC GLOBAL
PROC APP_FF
PROC SCHOOL_ID
preproc
$ = curocc();
PROC SCHOOL_NAME
preproc
$ = getvaluelabel(SCHOOL_ID(curocc()));
PROC SCHOOL_ID_KNOWN
preproc
numeric i;
do i = 1 while i <= count(APP000)
if KNOWING(i) = 1 then
KNOWN_SCHOOL_NAME(i) = SCHOOL_NAME(i);
SCHOOL_ID_KNOWN(i) = SCHOOL_ID(i);
endif;
enddo;
I need your help