Hey,
What is the difference between SCAN,CHECK,XLATE OPCODES?
please give me the answeres with example in real time
senario?
SCAN:this allows to locate a character or string of
character within a character field.e.g if we want a string
like 'abc'exist in a base string like 'mnoabcd'or not.
fact1 opcode fact2 result hi lo eq
'abc' scan 'mnoabcd' var-name 90
value of var_name=4 & indicator 90 will be on.
CHECK:this is just opposite of scan.findout absence of
character or string of character.
fact1 opcode fact2 result hi lo eq
'123456' check '111*1' var-name 90
value of var_namr=4 & indicator 9 will be off on this
position.
XLATE:convert to upercase charecter to lowercase character
or vice-varsa.
declare in input specification as record identification
codes.
I 'ABCDEFGHIJKLMNOPQRSTUV C UC
I WXYZ'
I 'abcdefghijklmnopqrstuv C LC
wxyz'
then uses in c-spec.
c UC:LC xlate any-name result length_dec
if fact2 is-RAHUL u will get rahul.
| Is This Answer Correct ? | 40 Yes | 1 No |
distinguish between terminating a program through seton lr and return?
What is the necessary keyword used in a physical file to refer field definitions from the field reference file?
What is the purpose of CHGPF (Change physical file) command?
What is left outer join?
What is the draw back of Procedures? why we are going to Modules?
how you will find an error which is not in the first page of the subfile without using rolldown key?
what is qcmdexc?
How to write a password mask program in as400? like the password which i type should be displayed as '*****' r ###### which the user wishes to dispaly if u could help me with url r the solution in written code this will help me
is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.
What is the use of OVRPRTF ?
which are the relational operators in rpg?
how will you search an array?