wat is scan and check ? give me real time scenarios where
we used these keywords in ur projects?
Answer Posted / 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 |
Post New Answer View All Answers
how do I play {insert rpg system here}?
What is difference between bind by copy and bind by reference?
are there any useful c runtime apis that I can call from rpg iv?
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
How to handle duplicate error handling in RPG?
what is a rpg?
how can I tell when to replace the array?
When it is desirable to describe files Internally?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
what is the use of sflnxtchg?
What is ment by record level identifier?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
How can we know running job is batch or interactive?
How Chain operation copies the record's data to the input buffer for the program?
what was the robotech rpg?