Hey,

What is the difference between SCAN,CHECK,XLATE OPCODES?
please give me the answeres with example in real time
senario?



Hey, What is the difference between SCAN,CHECK,XLATE OPCODES? please give me the answeres with..

Answer / swadesh

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

Post New Answer

More IBM AS400 AllOther Interview Questions

which cl command can be used at program execution to redirect the file named in an rpg program?

0 Answers   IBM,


when is a tag statement used in rpg?

2 Answers   IBM,


What is a library list ?

1 Answers  


What is the purpose of OVRATA keyword ?

1 Answers  


What is the purpose of CHGPF (Change physical file) command?

1 Answers  






Define the purpose of Factor 1 the Operation Code and *IN15 in following code HI LO EQ C *YMD Test(D) yymmddDate 15

1 Answers  


what is the difference between seton lr and retrn?

1 Answers   IBM,


What Does Lokup Does In Tables & Arrays?

0 Answers   IBM,


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

0 Answers   IBM,


How to inner join more than 2 PFs in a CL program using OPNQRYF command?

1 Answers  


define subsystem?

1 Answers   IBM,


how will you search an array?

0 Answers   IBM,


Categories