Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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



1.How to load Records of a Physical file(PF) in the reverse order, in CL program?..

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

1.How to load Records of a Physical file(PF) in the reverse order, in CL program?..

Answer / ravi kumar

POSDBF command can useful

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More RPG400 Interview Questions

i'm working on progA , in that program i want to see the userids of the users who work on this program?

10 Answers   Four soft,


can we use cl programming to update or delete physical files

12 Answers  


am 2010 passed out . can any one tell me which course is good to put 2+fake .guide me

1 Answers  


how to display all the members records in a physical file without using ovrdbf?

9 Answers  


RPG/400 faqs?

1 Answers   HSBC,






IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


what is batch debug in as400?

3 Answers  


what is commitment control?explain about it?

1 Answers   HSBC,


what is file identifier wher we can use

1 Answers   IBM,


purpose of pannel group??/

2 Answers   CTS,


Suppose you have 3 members in a database file. How to read records from all the members without using CL (OVRDBF) i.e. Entire process should be handled exclusively in a RPG program?

7 Answers  


3. Given the DOS Specification below and the following information: • Indicator 50 is off • No records have been written to the subfile What will be the result if the EXFMT operation code is performed on the record format CTLR? A R SUBFL A DESCRIP 101 6 1ODSPATR(UL) A DFT(’NOT FOUND’) A R CTLR SFLCTL(SUBFL) A N50 SFLDSP A SFLDSPCTL A SFLINZ A 67 SFIJEND A SFLSIZ(13) A SFLPAG(12) A ACCOUNTNO 100 S 10 a.) Only AccountNo will display b.) SUBFL will be initialized with 13 blank records c.) An I/O exception error will occur d.) The screen will display 12 records with ‘NOT FOUND’

4 Answers   IBM,






Categories