what built in function can be used with SETLL.If you want
to check whether the search argument is successful or not?
Please give me answer with example?

Answer Posted / syam

SETLL to set pionter to a record

To set pointer to Starting of the file use
C *LOVAL SETLL Recordname
To set pointer to End of the file use
C *HIVAL SETLL Recordname

To set pointer to a particular record of the file use
C Move currentYEAR YEAR(2008)
C YEAR SETLL Recordname

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How Chain operation copies the record's data to the input buffer for the program?

1085


How many program bind in one module....

2128


If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

624


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2378


When it is desirable to describe files Internally?

1196






how can you display specific subfile page on the screen in unequal subfile?

677


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?

4221


what is data area and how it is used in rpg program ?

758


how does the rpg element work?

722


What is difference between bind by copy and bind by reference?

1736


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2056


What is the difference between copybooks and subprocedures in as400?

814


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

749


can I touch the array during treatments?

762


what is a rpg?

705