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
what is the clp command to access a query/400?
What is a query can be displayed without saving it?
how do you use exceptional write in c specs?
Space & Skip Are Which Level Keywords?
what is the length of a variable in rpg?
what do we can do with the embedded sql statements?
when do you explicitly open files and close files in an rpg program?
In RPG How to read a records from a file without using read opcodes?
What is %CHECK?
the output from my cgi is correctly interpreted by ms internet explorer, whereas netscape navigator would display it as a plain text. What should I do to have also netscape interpreting the html output from my cgi?
difference between view and index ?
what does opcode post do ?
what is the purpose of data structure?
can error messages as a result of a comp, range or values keyword be overridden?
how will you display a particular page in subfile ?