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?
Answers were Sorted based on User's Feedback
Answer / swetha p rao
%Equal should be used with Setll .%Equal says whether the
argument is present or not.
Klist1 SetLL File1
If %Equal
/* Argument Found
else
/* Not found
EndIf
| Is This Answer Correct ? | 27 Yes | 4 No |
Answer / 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 |
Answer / guest
%Found built in function is used with SETLL.%found turned
to be on when a record find in the file.
| Is This Answer Correct ? | 11 Yes | 18 No |
1.Write code to read the records from a file and load an array of size 99? Make sure that you take care of all the error conditions?
i want to perform uniqness on db file bt my db file nt hving key by useing rpgle.
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 ?
what is edit word and edit code
wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?
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.
How to create a key field for a logical file inside RPG?
i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel
Hi, Can any body tell me ur experience on this questions? Questions: 1.what is the use of SFLRCDNBR other than subfile page display? 2.Which of the following operation cannot be used in conjuction with a file coded as device type disk?
Hi friends, Can you give the solution for the below mention simple code.and explain.what is output D CHR1 S 4A INZ('PEN') D CHR2 S 10A INZ('MYGET') D CHR3 S 8A INZ('GOOD') D CHR4 S 22A INZ C MOVEL CHR1 CHR4 C MOVE CHR2 CHR4 C EVAL CHR4=CHR3 C MOVE CHR1 CHR4
what is plat file?
If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.