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 term cua , saa?
what is a logical file?
how can database records be read without lock ?
What Is Default Data Type (if You Define Decimals '0') In Physical File?
how can we run a batch job?
explain the purpose of keep and assume keywords?
in conjunction with which statements can orxx and andxx conditions be used ?
how will you display a particular page in subfile ?
which cl command can be used at program execution to redirect the file named in an rpg program?
what is a join logical file?
define data structure?
how can I predict the performance of my cgis?
what is the purpose of data structure?
Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?
when is a tag statement used in rpg?