Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output
Answers were Sorted based on User's Feedback
Answer / ganesh kandaswamy
Chain is nothing but the combination of setll and reade. After reaching 4th record if we chain it will again reading the 1st record.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / aanchal
After reading 4 records if we chain the file. It will read the 4th record. That is the 4th record will be read twice.
| Is This Answer Correct ? | 0 Yes | 5 No |
list down and describe the sub systems vailable
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
difference between CHAIN and READE?
How to sort an array in descending in RPG
i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL program
I have some doubts on subfile----------- -----I wrote a prog on subfile to display the records. Every thing is clear but i defined a field called "opt" as input field in subfile record format from that input field i wish to enter into new screen called "EDIT" which i created it as a separate RCD in display file. i gave opt as 2 for edit just like in WRKMBRPDM screen please telll me the code and how can i code for it in RPG.
Can any body give the code for this quesition? Using the following details write C-Spec code to set Name to"AMMU LABS SYSTEM" D NAME1 S 10 INZ('AMMU') D NAME2 S 10 INZ('LABS') D NAME3 S 10 INZ('SYSTEM') D NAME S 20
When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation to return to PGMA. When PGMA call PGMB the second time is the *INZSR executed?
what is the difference between SETON RT & RETURN?
Suppose in CL we reach at end of file and again we have to reach from 1 record
what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????
HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG) STATUS.I KNOW THE STEPS FOR BATCH DEBUGGING,BUT IM CONFUSING WITH WHEN WE SUBMIT ANY JOB FOR BATCH DEBUG WE PUT IN HELD STATE.SO HERE ALSO DO SAME THING OR ANY OTHER WAY,PLEASE HELP ME....