Here i am doing get all the member names from the perticular file. for that use dspfd command and pertilular MBRLST and the output instead of displaying saving in a file and reading that file in aloop CL program using RCVF command and overriding the file with the each memberthen call the program in that program reading from overrided file and compare the account number and if its same display the output
*************** ******************************
0001.00 PGM
0001.01 DCLF FILE(NTEUSR/CLDSP) RCDFMT(CLDSPREC) OPNID(N001)
0002.00 DCL VAR(&FILE) TYPE(*CHAR) LEN(10)
0002.01 DCL VAR(&TWO) TYPE(*CHAR) LEN(10)
0002.02 DCL VAR(&FNAME) TYPE(*CHAR) LEN(10)
0003.00 /* TEMPORARY FILE WHICH STORES THE MEMBER INFO */
0004.00 DCLF FILE(QTEMP/MBRLST)
0004.01 SNDRCVF RCDFMT(CLDSPREC) OPNID(N001)
0005.00 MONMSG MSGID(CPF0000)
0005.01 /* DLTF FILE(QTEMP/MBRLST) */
0006.00 DSPFD FILE(NTEUSR/&FILE) TYPE(*MBRLIST) +
0007.00 OUTPUT(*OUTFILE) OUTFILE(QTEMP/MBRLST) +
0007.01 OUTMBR(CLPFOUT)
0007.02 CLRPFM FILE(CLPFOUT)
0007.03 MONMSG MSGID(CPF0000)
0010.00 LOOP: RCVF OPNID(N001) in this program one error occur i cant find out the error please help to find out error. the error is
4>> CALL NTEUSR/CLTESTM
Value ' ' for FILE not a name or generic name.
Error found on DSPFD command.
Function check. CPF0001 unmonitored by CLTESTM at statement 0000000600,
instruction X'0000'.
CPF0001 received by procedure CLTESTM. (C D I R)
CPF0001 received by procedure CLTESTM. (C D I R)
Software/Hardware used:
ASKED:
April 3, 2008 6:45 AM
UPDATED:
April 8, 2008 4:04 AM