Hi,while writing a program, what is the mandatory
specification using rpg/400 (in7 specification)?And please
tell me what is the difference between SCAN AND CHECK
opcodes?can any body tell me in real time senario?with
example?
Answers were Sorted based on User's Feedback
Answer / swetha p rao
C Spec is mandatory because we need to specify SETON LR in
the program,If (C SETON LR) is not specified program throws
a compilation error.
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / madhusudhan
Difference Between Scan and Check Operators
'D' SCAN 'Hardcore' Res
'D' Check 'Hardcore' Res1
'D' Check 'Dragon' Res2
Res = 4 , Res1 = 1 , Res2 = 2
Scan always gives the position where the search string is
found.
Check always gives the position of First non-existent
Position. Hope the RES1 and RES2 example will give you an
idea of CHECK opcode
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / t thomas
%check validates a string character by character to a
particular set of characters and gives 0 if that character
in the string is not present in our set else give the
position.
%scan checks in a string whethere a string or character is
present in another string and also gives the start position.
| Is This Answer Correct ? | 1 Yes | 2 No |
what are the different types of keys in AS400
how can I start a page in a new window?
using dfu, user will be able to ___________ from physical file?
What does SDA stands for ?
what is lokup opcode?
Hey, What is the difference between SCAN,CHECK,XLATE OPCODES? please give me the answeres with example in real time senario?
what is the correct about QTEMP library(below mention)? a.it is Unique to a job b.it can be shared between different job c.it can only be deleted by QSECOFR d.Non Please give me the answer for this?
Why do you use Keep and Assume Keywords.
define what a data queue is along with a brief example of what it may be used for?
how many printer files can be defined in f specs ?
if &var='good++++' &var2='day' &var *cat &var2 &var1 *tcat &var2 what is output
What are the different definition levels in Data Description Specifications?