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 many specifications are there in rpg/400? What are they?
how can you detect overflow for a print program that prints multiple lines per cycle?
what are the various types of device files?
Explain The Keywords Edtcde & Edtwrd?
how do u compile rpgle program?
Can level check error occur if we do chgpf?
what are various techniques to pass parameters from one program to another?
What is the as400 called now?
A join logical file has how many record formats?
what is a logical file?
how will you find a string using pdm?
how can you detect and handle a record lock situation?
What Does 'sr' In Columns 7-8 Of C Specs Mean?
How do I remove a flag or check no. or name when a user opens too many sessions?
all i need to know about cmpseqdat parameter in cmppfm, how it works and can we retrieve line sequence and date from the output?