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 as400 called now?
what is the maximum number of records you can specify in a display file?
what is join logical file?
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 keyword must be used with protect keyword ?
What is data structure in as400? What is the use of data structure?
Difference Between Ca & Cf?
what is the purpose of ovrdta and ovrata keywords ?
How to Define a Procedure in RPG?
how many files can be defined in f specs?
define what a data queue is along with a brief example of what it may be used for?
Difference between NOPASS & OMIT?
What Does 'sr' In Columns 7-8 Of C Specs Mean?
http default port 80 is used by some other production http service. How can I create an http instance on another port to run cgidev2 and my future cgi developments?
is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?