can anybody explain significance of *loval setll with example code????

Answers were Sorted based on User's Feedback



can anybody explain significance of *loval setll with example code????..

Answer / praveen sankhare

*LOVAL SETLL is used to set the pointer at the starting of
the record(i.e 1st record.)

For eg. Keyed records in file are 2,3,5,7,8...
Factor 1 opcode factor2 HI LO EQ
*loval SETLL REC 99 98

*loval setll will set the poniter to 2.

Is This Answer Correct ?    18 Yes 0 No

can anybody explain significance of *loval setll with example code????..

Answer / sree

It will set the pointer top level and it will read first
record from the data base file or device file.
ex:
FEMP IF E K DISK
*LOVAL SETLL EMP
ID DSPLY
NAME DSPLY
SETON LR

Is This Answer Correct ?    6 Yes 0 No

can anybody explain significance of *loval setll with example code????..

Answer / sree

It will set the pointer top level and it will read first
record from the data base file or device file.
ex:
FEMP IF E K DISK
*LOVAL SETLL EMP
ID DSPLY
NAME DSPLY
SETON LR

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?

5 Answers  


RPG/400 faqs?

1 Answers   HSBC,


wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?

2 Answers   Four soft,


I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)

3 Answers   Opus,


1.what are the ARITHMETIC EXPRESSIONS IN CL PGM? 2.How to PASSING PARAMETER TO CL PGM?

1 Answers   NetCracker,






1.How can you search an entire source file for a particular field name? 2.How can you find the differences between two versions of the source for the same program? 3.What is a hidden field as it relates to a sub file? 4.How do you display a sub file that has no records in the sub file?

8 Answers   HCL,


How can i check the object existance in RPG program without using QCMDEXC command.

7 Answers   IBM, JDA,


How to add 2 new fields in a file? How many ways are there in as400?

2 Answers  


Mr.Sidc sirfor my question{how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE} you have answered using MOVE opcode,can you illustrate me with a small example sir very kind of you.

1 Answers   CTS, IBM, iGate,


Can we possible to key with the date field?

1 Answers   IBM,


how can we can we the data decimal error?how can we open such file in support

1 Answers  


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

5 Answers  


Categories