What is the RPG cycle?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

553


how do I play {insert rpg system here}?

589


How to call one program from another program in RPG? please help me with the code

1265


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

519


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...?

1466






How Chain operation copies the record's data to the input buffer for the program?

1084


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1459


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

716


what is the use of sflnxtchg?

807


how do I preserve and clean the array?

677


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2202


what is the rpg system?

670


Explain mdt?

667


do you use message subfiles? What are the necessary keywords required coding a message subfile?

694


explain sflclr, sflend, sfldlt, and sflcsrrrn?

891