wat is scan and check ? give me real time scenarios where
we used these keywords in ur projects?

Answers were Sorted based on User's Feedback



wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?..

Answer / sam

FACTOR 1 OPERATION FACTOR 2 RESULT
Comparator SCAN Base left most
string: length string:length position
of string

The SCAN operation scans a character string (base string)
contained in factor 2 for a substring (compare string)
contained in factor 1. The scan begins at a specified
location contained in factor 2 and continues for the length
of the compare string which is specified in factor 1.
The result field contains the numeric value of the leftmost
position of the compare string in the base string.

The CHECK operation verifies that each character in the
base string (factor 2) is among the characters indicated in
the comparator string (factor 1). Verifying begins at the
leftmost character of factor 2 and continues character by
character, from left to right. Each character of the base
string is compared with the characters of factor 1. If a
match for a character in factor 2 exists in factor 1, the
next base string character is verified. If a match is not
found, an integer value is placed in the result field to
indicate the position of the incorrect character.

Is This Answer Correct ?    15 Yes 0 No

wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?..

Answer / noah

this is used to scan for source codes that match the program
name the developer is looking for. This usually use to check
program dependencies before migration of source code for
integrity check purpose.

This scan function also used for analyze program flows.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More RPG400 Interview Questions

what is the difference between the cpyf command crtdupobj command?

9 Answers   IBM,


what r drawbacks of OPM? Why do we go for ILE RPG?

1 Answers  


Suppose my file has 10 fields and I want to make the 2nd field zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation?

1 Answers  


The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?

5 Answers  


how do u find whether a record is locked or not??/

5 Answers   CTS,






how do I preserve and clean the array?

0 Answers   IBM,


list down and describe the sub systems vailable

5 Answers   IBM,


Can you copy the records created by the OPNQRYF to other files and how?

2 Answers  


How do you know if a record exists without doing a READ and CHAIN?

6 Answers   IBM,


In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?

6 Answers   Hexaware,


Hi guys, anybody know How RPG/400 code can be converted to RPG IV code with a single command?

1 Answers  


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

0 Answers   HCL,


Categories