What is the RPG cycle?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 .
how can we can we the data decimal error?how can we open such file in support
I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this
How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?
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
i would like to know under what circumstance the object will get locked on AS400.
Explain mdt?
How to declare the more than one file in cl/400.
How to handle duplicate error handling in RPG?
How to read alternative records in a pf by using rpg?
i want to retrieve record b/w 2 dates in as400
What is ment by record level identifier?