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 |
What are the necessary keywords required to code a message subfile?
steps involved in debugging and types of debugging modes?
What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq C MOVE *LOVAL NUM1 50 C MOVE *J-fIVAL NtJM2 52
How do you know if a record exists without doing a READ and CHAIN?
suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis
What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?
What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.
How can i keyed a flat file in RPGLE
Im traying to get out put of this below mention simple logic code.But im geting out of different.(im trying with my laptop trhough my company server. DCL &FIELD1 *CHAR 10 VALUE('TCS AS/400') DCL &FIELD2 *CHAR 10 CHGVAR(%SST(&FIELD2 1 10))(%SST(&FIELD1 10 1) Can you tell me the value of field2 after excuted of CHGVAR command.
How to call one program from another program in RPG? please help me with the code
In how many ways a session/device error occurs,,, and what is the remedy for it?
How do you find out whether a record is present in the physical file without reading the file? for Example Employee No: 100 in an Employee master.How do we find out whther 100 is present in Employee master without reading the file?
11 Answers Bank Of America, CSC, IBM,