Hi,while writing a program, what is the mandatory
specification using rpg/400 (in7 specification)?And please
tell me what is the difference between SCAN AND CHECK
opcodes?can any body tell me in real time senario?with
example?
Answer Posted / madhusudhan
Difference Between Scan and Check Operators
'D' SCAN 'Hardcore' Res
'D' Check 'Hardcore' Res1
'D' Check 'Dragon' Res2
Res = 4 , Res1 = 1 , Res2 = 2
Scan always gives the position where the search string is
found.
Check always gives the position of First non-existent
Position. Hope the RES1 and RES2 example will give you an
idea of CHECK opcode
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
how to develop some simple graphs (bar charts) using just html?
Difference between NOPASS & OMIT?
how can you check for a records existence without causing and i/o (chain/read)?
what are the different types of data areas?
what does vldcmdkey means?
If i change any file through application after entering data , how to check which file is updated through applications . For call stack we takes esc 3 then we chose 11..But What is answer of below qtn..?
what is maximum number of arrays allowed in rpg?
Write a logic program for knowing the repeated number of a vowels in a given program?
where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?
what is the purpose of overrides?
Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)
Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?
what is sflpag and sflsiz ?
how can u check no of records in a file?
What is RETURN CURSER LOCATION in subfile?