how to get no of records in file in rpg with out cl cmd

Answer Posted / shobhit

With the help of INFDS(File information data structure) we
can know the no of records in file.

Ex.
D NUM_RCDS 156 159I O * Num of records

Is This Answer Correct ?    44 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

WHAT IS FERERENTIAL INTRIGRITY ?

1112


Difference Between Interactive & Batch Job?

793


what is externally described file ?

943


Difference Between Call & Sbmjob?

778


what are dds required for subfile?

587






what is subfile?

956


Service Program : S1 Modules in S1 : M1 M1 having two procedures : ADD, SUB Current Binder Language STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP Doubt: I need to add one new Module to the Service Program M2 having one procedure ‘MULT’ How to add this new module to the service program S1 ? If I need to recreate the service program again, Do I need to mention the Module M1 again while recreating along with new Module M2? There is no Binding Directory. Binder language structure will be like this STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") EXPORT SYMBOL("MULT") ENDPGMEXP STRPGMEXP PGMLVL(*PREVIOUS) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP

1934


what is the clp command to access a query/400?

1367


how can I control the way a remote browser uses its cache?

611


1)In a pf if we delete a record then how to insert a new record at the same place in that pf?? any logic or code? 2)A batch job is taking a lot of time to run,found that it is going into loop and wrapping up so how to skip that loop and process the job without changing the code? 3)In which scenario C D I R comes and C D G F comes in a job? 4)If a job came to error while processing a file how we can know at which record the error hit and how to skip that record and process other records without changing program code?

3069


how can you detect and handle a record lock situation?

1220


how can I predict the performance of my cgis?

651


is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.

2122


If i change any file through application after entering data , how to check which file is updated through applications . For call stack we takes esc 3 then we chose 11..But What is answer of below qtn..?

1482


What is a query can be displayed without saving it?

675