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 |
Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?
how can you display specific subfile page on the screen in unequal subfile?
suppose if we want to update the data in cl what we will do?
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
what is flat file?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE
There is a excel sheet having details of Old account number and new account number. I need to update these details in my AS400 files. i.e. all the records having old account number should be replaced with new account number. There can be 100 or 200 or 300 PFs...no fix files known. how can we do this?Solution should be performance oriented
What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?
What is use of IMPORT and EXPORT in RPGLE ? What is activation Group ? What is Service Program ???? How to call another program in RPGLE ?
How do you code file / field renames in ILE RPG?
wat is meant by hidden field , why it is used?