Hi Jamie
Could u plz check my prgm:
I have first loaded all the records into the subfile n displayed on the screen and then based on the value entered on the POsition TO field the records are again displayed on the screen, so after this i have used EXSR READ stmt but it is not executing tht stmt it is simply coming out of the ENDIF and ENDDO
yyyyyyyyyyyy?
Could u plz check my prgm:
Code:
FSGCUSL1 IF E K DISK FPROMPT CF E WORKSTN F RRN1 KSFILE PMPTS E* ERR 1 1 30 C *IN12 DOUEQ*ON C WRITEFOOTER C EXFMTPMPTC C *IN12 IFEQ *ON C MOVE *ON *INLR C ENDIF C SRCH IFNE WSCUS C MOVE WSCUS SRCH C MOVE *ON *IN31 C WRITEPMPTC C MOVE *OFF *IN31 C Z-ADD0 RRN1 C SRCH SETLLSGCUSL1 C EXSR SUBLD *------ C EXSR READ C ENDIF C ENDDO C* C *INZSR BEGSR C* *ENTRY PLIST C* PARM CUSID C Z-ADD0 RRN1 40 C *LIKE DEFN WSCUS SRCH C EXSR SUBLD C ENDSR C SUBLD BEGSR C Z-ADDRRN1 LSTRRN C*--- C *IN99 DOUEQ*ON C READ SGCUSL1 99 C *IN99 IFEQ *ON C LEAVE C ENDIF C ADD 1 RRN1 C WRITEPMPTS C ENDDO C*--- C RRN1 IFGT 0 C MOVE *ON *IN30 C ELSE C MOVE *OFF *IN30 C ENDIF C* C LSTRRN IFNE RRN1 C ADD 1 LSTRRN C END C* C ENDSR *---------- C READ BEGSR C Z-ADD0 RRN1 C Z-ADD0 READCS 40 C MOVE *OFF *IN99 C *IN99 DOUEQ*ON C READCPMPTS 99 C *IN99 IFEQ *ON C LEAVE C ENDIF C ADD 1 READCS C READCS IFGT 1 C MOVE *ON *IN80 C ENDIF C ENDDO C ENDSR
I have first loaded all the records into the subfile n displayed on the screen and then based on the value entered on the POsition TO field the records are again displayed on the screen, so after this i have used EXSR READ stmt but it is not executing tht stmt it is simply coming out of the ENDIF and ENDDO
yyyyyyyyyyyy?




Comment