What is the RPG cycle?

Answers were Sorted based on User's Feedback



What is the RPG cycle?..

Answer / bharat

It is RPG400 Logic means it is a compiler logic through
which system reads the primary file starting from begining
to end of file. No File operations like read/chain can be
used.System has the control of the program.

Is This Answer Correct ?    12 Yes 5 No

What is the RPG cycle?..

Answer / yogesh

Unless it has a NOMAIN the cycle runs -- here is the short
list of cycle stuff
it does some initialization
opens files
runs *INZSR
runs first statement
does some stuff when *inlr is on and end or return is
reached

If the F spec has a P then it automatically reads records
from that file
It can also automatically write stuff to a report and do
control breaks ...
So back a ways there were programs written with F-specs I-
specs and O-specs and the program did as the name implies -
(Report Program Generator).

Is This Answer Correct ?    6 Yes 0 No

What is the RPG cycle?..

Answer / svankipu

Simply put; RPG-Cycle is a default system cycle, which takes
care of all these below without having the programmer to
write the code

1)Opening a file(must be declared as PRIMARY)
2)Reading it & process it
3)Do any calculations/print reports automatically
4)Closes the files
5)Ends the program

this cycle is also called as RPG-Logic-cycle or
RPG-Life-Cycle or Default-Cycle or System-cycle.
Different people have different reservations about it's name.

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More RPG400 Interview Questions

If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.

3 Answers  


how we create binder member for updating service program and where we type this code on command line or in program ? strpgmexp pgmlvl(*current) export symbol (xyz0 endpgmexp. plz explain me this step by step .

2 Answers  


1.Write code to read the records from a file and load an array of size 99? Make sure that you take care of all the error conditions?

2 Answers   HSBC,


what was the robotech rpg?

0 Answers   IBM,


1..Write an sql query to find the employee name who is having 2 phone numebr? 2.Write an sql query to the the second highest salary of the employee?

4 Answers  






I want my simple Green screen should refersh every 1 min ,How can I do it..? Please share the logic

2 Answers  


WHAT IS MEANT BY SIGNATURE VAILOTION ERROR

1 Answers   IBM,


What is the purpose of record level identifier?

0 Answers  


1.Where we declare Variables in RPG/400,RPGIV,RPGILE.? 2.When do we use D-spec and I-spec in real time ?.what is difference between them?

1 Answers   HP,


we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do tht job with in 3hours.........? so plz post ur answers

8 Answers   Cap Gemini, IBM,


How to update selected fields from pf without using update opcode. How to read all member in Rpg-3,without using any cl command?

8 Answers  


Need a sql query: retrieve all duplicate records in table?

1 Answers  


Categories