1.How to load Records of a Physical file(PF) in the reverse
order, in CL program?
Answers were Sorted based on User's Feedback
Answer / anil kumar.anumulasetty
I THIS EXAMPLE I M USING EMPFILE READING IN REVERS ORDER
PGM
DCLF FILE(EMPFILE)
OVRDBF FILE(EMPFILE) SHARE(*YES)
OPNQRYF FILE(EMPFILE) KEYFLD(EMPNO *DESCEND)
READF: RCVF RCDFMT(MPILR)
MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(END))
GOTO READF
END:
ENDPGM
| Is This Answer Correct ? | 19 Yes | 0 No |
How to find d key field of a pf that doesn’t have source physical file?
In how many ways a session/device error occurs,,, and what is the remedy for it?
what is post opcode do
how can an indexed file be used as arrival sequence in RPG?
When it is desirable to describe files Internally?
3 members in databasefile .how to read records from all the members??
What is the purpose of record level identifier?
I have a Physical File name 'File1', which is present in two libraries named 'LIB1' & 'LIB2'. These 2 libraries are listed in the library list. Would like to access data from this file from these two libraries using RPG program. How to do this, any idea?
1. If my rpg program has a date field, What extra care I have to take while compiling that RPG program? 2. If the file is keyed and I have declared the file as well as Key list properly in my program. Still am getting an error message like "Chain/reade operation is not allowed" What may be the case?
Can someone tell me tell me what is meant by message wait...?
suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis
What are the commands that can be executed in CLP but not in RPG? Why?