Hi every one....please help me for this question...
2 posters
Page 1 of 1
Hi every one....please help me for this question...
How can i retrieve no of members to a file........( I mean what is the command to retrieve)....
Arjun1234- Posts : 1
Join date : 2013-08-13
Re: Hi every one....please help me for this question...
RTVMBRD returns always returns 0 for PF. Actually it is used to find how many members the LF does have.
We can use the API QDBRTVFD in CL to get the member count.
Alternate way is do use outfile concept IN cl.
DSPFD FILE(&LIB/&FILE) TYPE(*MBR) OUTPUT(*OUTFILE)
FILEATR(*PF) OUTFILE(QTEMP/MBRCNT) OUTMBR(*FIRST *REPLACE)
then RCVF and get the count from the field MBNOMB.
We can use the API QDBRTVFD in CL to get the member count.
Alternate way is do use outfile concept IN cl.
DSPFD FILE(&LIB/&FILE) TYPE(*MBR) OUTPUT(*OUTFILE)
FILEATR(*PF) OUTFILE(QTEMP/MBRCNT) OUTMBR(*FIRST *REPLACE)
then RCVF and get the count from the field MBNOMB.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|