PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

Hi every one....please help me for this question...

View previous topic View next topic Go down

Hi every one....please help me for this question...

Post  Arjun1234 on Tue Aug 13, 2013 5:57 pm

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

View user profile

Back to top Go down

Re: Hi every one....please help me for this question...

Post  maran on Fri Aug 30, 2013 12:41 pm

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.

avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum