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

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

Join the forum, it's quick and easy

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

Get Answers for all your queries on IBM i (AS/400).
PMS Information Systems
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

2 posters

Go down

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

Post  Arjun1234 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

Back to top Go down

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

Post  maran 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.

Hi every one....please help me for this question... Mbrcou10
maran
maran
Admin

Posts : 442
Join date : 2009-07-24

https://pmsinformationsystem.forumotion.net

Back to top Go down

Back to top

- Similar topics

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