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 MENT BY RECORD LEVEL IDENTIFIER ? WHAT IS THE PURPOSE OF THIS?

1 Answers  


Why did we give STRSRVJOB while debugging batch program

3 Answers   HBL Power Systems,


We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?

5 Answers   Hexaware,


wat is meant by hidden field , why it is used?

4 Answers   Four soft,


What are the types of identifiers?

0 Answers  






Can we possible to key with the date field?

1 Answers   IBM,


I have some doubts on subfile----------- -----I wrote a prog on subfile to display the records. Every thing is clear but i defined a field called "opt" as input field in subfile record format from that input field i wish to enter into new screen called "EDIT" which i created it as a separate RCD in display file. i gave opt as 2 for edit just like in WRKMBRPDM screen please telll me the code and how can i code for it in RPG.

3 Answers  


Can we journel logical file and access path? Can we use commitment control for non-join L.F?

4 Answers  


I want to add 10 days in current date. how it is possible in CL program...?

11 Answers   CSC,


What is the difference Return and InLr?

3 Answers  


How can we search particular records from the database file in RPG. For example, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular 'NAME' field. How can we do the above using SEARCH criteria other than using the IF cond?

4 Answers   CTS,


Can a indexed file be accessed in arrival sequence in RPG?

1 Answers  


Categories