Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to know the number of records in a pf through clp program?

Answers were Sorted based on User's Feedback



How to know the number of records in a pf through clp program?..

Answer / syam

My above both answer is CL Command
for CL Program use this code (RTVMBRD - Retrive Member
Description)

PGM
DCL &NBRRCD TYPE(*DEC) LEN(10 0)

RTVMBRD FILE(FILLIB/FILEA1) MBR(*FIRST)
NBRCURRCD(&NBRRCD)
ENDPGM

Is This Answer Correct ?    83 Yes 1 No

How to know the number of records in a pf through clp program?..

Answer / mallela78

RTVMBRD FILE(ITMRVA) NBRCURRCD(&RCDCNT1)

Is This Answer Correct ?    13 Yes 1 No

How to know the number of records in a pf through clp program?..

Answer / syam

The correct answer...
use command DSPFD FILE(LIBOBJ/FILEA1) then Enter
then PGDOWN to last there u can see no.of records

Total number of
members . . . . . . . . . : 1
Total number of members not
available . . : 0
Total records . . . . . . . . . . . . . . :
2488

Is This Answer Correct ?    18 Yes 11 No

How to know the number of records in a pf through clp program?..

Answer / ashok

pgm
declare the file
runqry with output form as *SUMMARY parameter
endpgm

Is This Answer Correct ?    12 Yes 8 No

How to know the number of records in a pf through clp program?..

Answer / karthik

This is the EXACT CODE if you have any doubt.... mail me@
Gatlakarthik@gmail.com

DCL VAR(&R1) TYPE(*DEC) LEN(10 0)
DCL VAR(&D1) TYPE(*CHAR) LEN(2)
DCLF FILE(PF12) RCDFMT(RCD1)
RTVMBRD FILE(PF12) NBRCURRCD(&R1)
CHGVAR VAR(&D1) VALUE(&R1)
SNDPGMMSG MSG(&D1)

Is This Answer Correct ?    5 Yes 2 No

How to know the number of records in a pf through clp program?..

Answer / ravi shankar porwal

U can also find out the total no of record in a pf using
the OPNQRYF Commond in CL Pgm.

Is This Answer Correct ?    1 Yes 3 No

How to know the number of records in a pf through clp program?..

Answer / syam

Very simple....just copy pf file to another pf file.
after copy system will display subfile message on
last line of display move cursor to last line
24th line on the monitor then press PGDown key 2 times
"2488 records copied from member SALEDT."

CPYF FROMFILE(LIBOBJ/FILEA1) TOFILE(LIBOBJ/FILEA2) MBROPT
(*ADD) CRTFIL(*YES).

Is This Answer Correct ?    1 Yes 19 No

Post New Answer

More IBM AS400 AllOther Interview Questions

why we use binding directory and service pgm

4 Answers   TCS,


What are the types of Signature validation?

1 Answers  


which of the following operations does not zero the field flda defined as 4,0?

0 Answers   IBM,


what are activation group and what are its types.?

2 Answers   IBM,


what the purpose of ovrdta, ovrata keywords?

1 Answers   IBM,


in which specification the report layout can be defined?

1 Answers   IBM,


How to trap errors in CL?

1 Answers  


Hi i have one question In my srvpgm one module ADDM is there now i want to add new module i.e SUBM , please answer me IN STEPS how to write bndlanguage and how it was attach to SRVPGM

2 Answers   IBM, Satyam,


what are the limitations of cl (compare to rpg) ?

1 Answers   IBM,


Show 2 ways to convert a date from YYMMDD to MMDDYY (MULT operation not acceptable)

1 Answers  


how do you use exceptional write in c specs?

1 Answers   IBM,


What does SDA stands for ?

1 Answers  


Categories