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

Hi guys, anybody know How RPG/400 code can be converted to RPG IV code with a single command?

1 Answers  


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

3 Answers   IBM,


How can we know running job is batch or interactive?

0 Answers  


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

0 Answers   Wipro,


Can we have a Physical file without any member ? Please let me know

12 Answers  






3 members in databasefile .how to read records from all the members??

6 Answers   CTS,


Write a program to display prime numbers between 1 to 100 using RPGLE.

1 Answers  


Interviewer asked me write down DDS for load all subfile .can anybody write dds

0 Answers  


Whether a module can consists of many procedures or it can consist of subprocedures having a main procedure?If it is possible that it can contain many individual procedures than can we have different name for complete module and how do we call this module in main modul?

3 Answers   Steria,


There is a excel sheet having details of Old account number and new account number. I need to update these details in my AS400 files. i.e. all the records having old account number should be replaced with new account number. There can be 100 or 200 or 300 PFs...no fix files known. how can we do this?Solution should be performance oriented

3 Answers   Cap Gemini, IBM,


which MONMSG will give higher priority in CL program? I know MONMSG are of two types. Program Level Monmsg and Command Monmsg?

1 Answers  


HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton lr" OR "*INLR = *ON" in between the program code ? 3:if yes then according to there function the code which is written acter seton lr/ *inlr should not be execute . Can any one tell me why those code get executed ?

2 Answers  


Categories