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 |
what is open data base command
1 Answers Active Brains, Cognizant, CSC, CTS,
How to find the list of source physical files in a library?? Is there any way to get a list??
how to know total no of records in pf with out using sql??????
what is open data path? and what is the diff b/w access path and open data path?
can any one tell me what is meant by PSSR? Kindly elaborate it...
how to see number of logical files depending on a pf?...can we declare more than 20 logical files from a single pf? is it possible
How to know logical file belongs to which physical file without source?
What is the purpose of the chain and setll and setgt?
Is it possible to create a logical file whose Physical file is not in same library?
How to know the particular record in pf with out reading?
How to change the batch job to interactive job?
When u create a PF and did not fill up Maint parameter, then by default which access path will the system take & why