How can i retrive the Mutli members list to a Physcial file.i tried the below command. i got the error code
DSPFD FILE(AMLIB/DEMOPF) TYPE(*MBRLIST) +
OUTPUT(*OUTFILE) FILEATR(*PF) +
OUTFILE(AMLIB/DEMOPF2)
Message ID . . . . . . . . . : CPF3061
Message file . . . . . . . . : QCPFMSG
Library . . . . . . . . . : QSYS
Message . . . . : Record format &3 not found for outfile &1.
Cause . . . . . : Record format &3 was not found in outfile &1 in library
&2.
Recovery . . . : Change the name on the OUTFILE parameter. Then try the
request again.
Please advice me
Software/Hardware used:
CL ,AS400
ASKED:
September 17, 2011 8:18 PM
UPDATED:
March 31, 2012 4:05 PM
Most likely, the AMLIB/DEMOPF2 file already existed when you ran the command. If it was created earlier, it could have been created by using DSPFD but with a different TYPE() specified.
Each TYPE() has a different format. You can’t use the same outfile for different types of requests. Either use a different outfile or delete AMLIB/DEMOPF2 and let it be recreated with the appropriate record format.
Tom