how to get no of records in file in rpg with out cl cmd
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / shobhit
Read the file from beginning and increase the counter by
one till end of file. At the last the counter value will be
the no of records in file.
Is This Answer Correct ? | 5 Yes | 15 No |
What is Spool file, Why is it required?
1.what is mean by compilation and runtime error? 2.How to define ALFA numeric value in pf? 3.what command is used to define a data in cl pgm? 4.What type of command is used in page at a time subfile and load all subfile?
when you are defining a flat file in your program in f specs which format will you specify?
how can we view the entire objects and its types in a pgm?
what is join logical file?
How do you grant authority?
we have 2 PF files with same name, how to copy data's from one file to another through RPG program logic?
What does SDA stands for ?
what is the function of cpysplf command?
How can we read file using curser? how to define a curser?
Write a CL program which will run a batch job at 1 am every night
how can I control the way a remote browser uses its cache?