Hi, I have a program that submits multiple threads. In each thread job, I read a file by IOVRDBF with start position *RRN specified in the parameter of the job. But I could find that in the second job submitted the RRN number given is 298 but the file reads from 297th position. Can't understand from the joblog what's the issue.
Please help why is it behaving so.
OVRDBF FILE(CVOBSOB) TOFILE(CVOBSOB) POSITION(*RRN +
&RRNC) OVRSCOPE(*JOB) SEQONLY(*YES)
MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(NEXT))
CHGVAR VAR(&W1LIB) VALUE(' ')
CHGVAR VAR(&W1BKLIB) VALUE(' ')
/* Process only allocated records for this thread */
IF COND(&RRN *GT &ERRN) THEN(GOTO CMDLBL(NEXT))