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 is the function of RJE Conversion Utility?
how can we run a batch job?
Q.Suppose one job is running in a batch mode for a long time now i want to kill this batch job. how you achive this?
what is data structure?how many types of data structers?
Can level check error occur if we do chgpf?
what if my system I runs with system value qccsid 65535?
What is the difference between production library and test library ?
If i change any file through application after entering data , how to check which file is updated through applications . For call stack we takes esc 3 then we chose 11..But What is answer of below qtn..?
maximum number of subfiles that can be active for a single file is?
What is the symbol used for defining a new field in SDA?
what is qcmdexc?
Describe the function of SETLL operation in RPG language?