CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?
Answer Posted / ravikumar895
Hi Sai,
We can read records in so many ways in RPG Program.
1) primary file as file designation
2) file information data structure
3) Using pre-run-time array
0001.00 FFLAT01 IT F 5 DISK
0002.00 DPRE_ARR S 5 DIM(5) FROMFILE(FLAT01)PERRCD(1)
0003.00 C PRE_ARR(1) DSPLY
0004.00 C PRE_ARR(2) DSPLY
0005.00 C PRE_ARR(3) DSPLY
0006.00 C PRE_ARR(4) DSPLY
0007.00 C PRE_ARR(5) DSPLY
0008.00 C SETON LR
OUTPUT :
-----------
AAAAA
BBBBB
CCCCC
DDDDD
EEEEE
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
can you debug ile rpg program using isdb?
What is the difference between copybooks and subprocedures in as400?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
What is ment by record level identifier?
what is the necessary keyword needed to scroll subfile records?
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
how do I declare a minor?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
what is file information data structure?
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?
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...?
how can I tell when to replace the array?
What is the purpose of record level identifier?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?