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


Please Help Members By Posting Answers For Below Questions

the maximum number of subfiles that can defined in a rpg program for one display file is ___ .

2181


what is the clp command to access a query/400?

1364


what is service program?

603


how does union file maintains record formats?

631


What is compiler directive in as400? Give example of compiler directive.?

576






What is file information data structure(infds) in as400?

973


what is full form for dds?

745


what is the version of os/400 that we have?

959


How can we read file using curser? how to define a curser?

831


how will you search an array?

650


what are the important factors in error message subfile ?

568


what is the maximum number of files allowed in rpg?

942


what are the different methods to access seu?

626


list some of the commonly used commands for debugging?

895


how to pick up the changed records every time in a subfile after the first change made ?

1020