Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?

Answers were Sorted based on User's Feedback



CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?..

Answer / mathan kumar

It is Possible by Declare the pf file as a primary file
then you can access the records from pf by using the pf
fields in the program....

Is This Answer Correct ?    26 Yes 3 No

CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?..

Answer / prashant singh

Yes . By using RPG logic cycle.

Is This Answer Correct ?    16 Yes 1 No

CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?..

Answer / rosh

above both answers are correct,as well if you use the flat
file and define this flat file as peogram decribe file and
define pre - run time array with file, so when program get
active, records will derectly comes to array.

Is This Answer Correct ?    4 Yes 0 No

CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?..

Answer / baratiya

File information DS can be used for this purpose as well.

Ffile1 IF E INFDS(fileinfo)
Dfileinfo DS
rcds *Records

Is This Answer Correct ?    2 Yes 1 No

CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?..

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

CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?..

Answer / sai829

H Rosh,
CAN YOU PLEASE Elaborate your answer.i.e how to Define pre - run time array with file in RPG?...Thanks in Advance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

what is importance of 'MAPFLD' IN OPNQRYF FILE ?

2 Answers  


What are the necessary keywords required to code a message subfile?

3 Answers  


How can read PF in reverse order (end to start) in CL pgm..

8 Answers   TCS,


how does the rpg element work?

0 Answers   IBM,


I want to add 10 days in current date. how it is possible in CL program...?

11 Answers   CSC,


parameters cannot be passed in which one??

2 Answers   CTS,


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?

0 Answers  


suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG

3 Answers   TCS,


What is the name of default out queue when user logs inn to syatem with valid profile?

3 Answers   IBM,


How can a screen field that has changed since the last output operation be detected?

4 Answers   IBM,


What is the significance of UDATE?

5 Answers   IBM,


Anybody know the difference of primary file and full procedural file

4 Answers  


Categories