Autogenerate ID
Posted: September 5th, 2015, 8:59 am
I using the following code to auto-generate ID but it works for the first record and subsequently I get and error message for duplicate record.
preproc
if demode() = add then
if visualvalue($) = notappl then // this is the first case in the data file
$ = 1;
else // this is the second, third, etc. case in the data file
$ = visualvalue($) + 1;
endif;
endif;
Thanks
Regards
Thad
preproc
if demode() = add then
if visualvalue($) = notappl then // this is the first case in the data file
$ = 1;
else // this is the second, third, etc. case in the data file
$ = visualvalue($) + 1;
endif;
endif;
Thanks
Regards
Thad