How to read a PF in reverse(from last rec to first) using CL?
Answers were Sorted based on User's Feedback
Answer / harkesh
IN THIS EXAMPLE I M USING EMPFILE FOR READING IN REVERSE
ORDER.
PGM
DCLF FILE(EMPFILE)
OVRDBF FILE(EMPFILE) SHARE(*YES)
OPNQRYF FILE((EMPFILE)) KEYFLD((EMPNO *DESCEND))
READF: RCVF RCDFMT(MPFILR)
MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(END))
GOTO READF
END:
ENDPGM
Is This Answer Correct ? | 27 Yes | 5 No |
Answer / ankur
using opnqryf command we can read file in reverse order in CL.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / abhijeet m
OVRDBF FILE(ABC)
MBR(ABC)
POSITION(*END)
RCVF ABC
Is This Answer Correct ? | 1 Yes | 10 No |
how to know total no of records in pf with out using sql??????
what is multiple member pf
What is the batch job?
can we concate fileds in physical file? If yes how can we do?
What is the interactive job? What is the batch job?
How to add a field to a PF and compile it without loss of data?
How to know the perticular record in pf with out reading?
what is the intractive job? what is the batch job ? how to change the batch job to interactive job?
Hi, Please give the answer to this question? I have Phisical file with 100 records,there is no any duplicate records in this pf.Based on this pf one Logical file i have used.But this lf is viewing only 80 records only of that pf?What is the reason for this?Please give me answer?
I have a PF with out any data but the dependent LF is having data?
When u create a PF and did not fill up Maint parameter, then by default which access path will the system take & why
pls anyone explain about compile time array,pre run time array run time array