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
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
What is the difference between copybooks and subprocedures in as400?
is this a rpg channel?
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
can I touch the array during treatments?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
what is kids-rpg?
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...
how does the rpg element work?
How Chain operation copies the record's data to the input buffer for the program?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
what is an online rpg?
What is a record lock error?
what was the robotech rpg?
how do you use commitment control in rpg?