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


Please Help Members By Posting Answers For Below Questions

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

1948


What is the difference between copybooks and subprocedures in as400?

783


is this a rpg channel?

663


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.

2038


can I touch the array during treatments?

733






How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1547


what is kids-rpg?

655


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...

1296


how does the rpg element work?

698


How Chain operation copies the record's data to the input buffer for the program?

1063


do you use message subfiles? What are the necessary keywords required coding a message subfile?

674


what is an online rpg?

704


What is a record lock error?

1248


what was the robotech rpg?

666


how do you use commitment control in rpg?

734