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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what does dfu program you to do on a record?

739


What are the types of data structure in as400?

543


what is sflpag and sflsiz ?

2290


how to define to define a hidden filed in dspf ?

783


What is RETURN CURSER LOCATION in subfile?

1074






can you have multiple key lists for a single file ?

997


what does check opcode is used?

976


what is a program described file in rpg?

1056


in which specification the report layout can be defined?

984


what is message file?

604


what is the use of data structures?

639


Apart from opening of a file do we have any other use of USROPN?

962


how can database records be read without lock ?

1223


What Is The Purpose Of The "n" In The Following Calculation Specification?

678


how may a cgi control duplicate inputs?

599