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 batch debug in as400?

3 Answers  


Given the following code, what is the value of RESULT? DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++ D RESULT S 5 0 C EVAL RESULT = (2 + 3 * 2) ** 2 / 2

2 Answers  


which program rpg or cl is efficent to update a transaction onto a database file and why ?

0 Answers   IBM,


How can we make use of SETLL operation in CL?

11 Answers  


If record-format name in an externally-described file has already been defined as a file-name.how to solve this?

2 Answers   CTS,






Anybody can explain the difference between SFLCLR & SFLINZ?

7 Answers  


HOW TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?

1 Answers   TCS,


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

3 Answers   IBM,


why subproc not run in dftactgrp?????/plz explain

2 Answers   CSC,


A pgm subroutine calling child subroutine, that child subroutine again calling parent subroutine, u have 1000 lines of code, with out debugging , how can u find that error??? Is there any command to find errors in pgm???

3 Answers   HSBC,


In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?

6 Answers   Hexaware,


Explain mdt?

0 Answers  


Categories