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
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 |
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 |
Im traying to get out put of this below mention simple logic code.But im geting out of different.(im trying with my laptop trhough my company server. DCL &FIELD1 *CHAR 10 VALUE('TCS AS/400') DCL &FIELD2 *CHAR 10 CHGVAR(%SST(&FIELD2 1 10))(%SST(&FIELD1 10 1) Can you tell me the value of field2 after excuted of CHGVAR command.
What is the difference Return and InLr?
How to print output from openquery in as400 ?
how do I preserve and clean the array?
what is plat file?
what is the equivalent keyword for CHAIN opcode ??
What is the RPG cycle?
What is Multi Occurrence Data Structure(MODS)?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
how do u find whether a record is locked or not??
i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL program
How to create a key field for a logical file inside RPG?