which command is used to find out the total number of records in physical file?
i heard there are 4 ways...
1. dspfd
2. ??????
3. ??????
4. ??????
can you please share with me ?....
Software/Hardware used:
software
ASKED:
June 8, 2012 7:25 AM
UPDATED:
June 13, 2012 3:10 AM
I might think of a number of ways, though they might not all be considered as a “command is used”. For example, CALL is a command and you can CALL any number of programs that give record counts.
But I don’t quite see what problem needs to be resolved.
Tom
I agree with Tom,
But I don’t quite see what problem needs to be resolved.
This sounds like a homework or an interview question.
YES SIR THIS IS THE QUESTION ASK TO MY FRIEND DURING INTERVIEW ,
This could also be a trick question.
When they are asking total records do they men active AND deleted ?
If so the only way I know of seeing the number of deleted in is with DSPFD.
You could also STRDFU option 5 on the file and roll back 1 screen to get the RRN of the last record in the file.
I think charlie may have had a typo on his #2 should it have ben DSPPFM ?
RTVMBRD &FILE NBRCURRCD(&COUNT)
Runqry file(Library/Filename)
In fact, to gull a fool seems to me an exploit worthy of a witty man.
Giacomo Casanova