I have a field in my display file "EMPID".
This field must be autogenerated and protected.
If i am to use data area how exactly do i include this in my rpg(not rpgle).What are the other possible ways of auto generating numbers in a rpg.Please guide.
Reedits: Data area was used and it worked like a charm:
Please note the below code:
C*** ARATWO IS NAME OF DATA AREA OBJECT
C *NAMVAR DEFN ARATWO 40
C *LOCK IN ARATWO
C Z-ADDARATWO EMP 40
C ADD 1 EMP
C Z-ADDEMP ARATWO
C OUT ARATWO
Thanks for all the aid.