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

What are the functions of Remote Job Entry (RJE) ?

1 Answers  


Diff B/w ref and reffld?

1 Answers  


What is the purpose of the following? A CSRLOC (F1ROW F1COL)

1 Answers  


how many files, printer files you can describe in a rpg?

0 Answers   IBM,


Is it necessary to define all formats ? Which are mandatory and which are Optional ?

1 Answers  






How can you identify End of file in CLP program?

1 Answers  


Want to know related Interview questions and answers for seniors

1 Answers  


WHAT IS AS/400 SYNORIO?

0 Answers   CTS, EDS,


Define what the operation will do, the purpose of the result field and the purpose of *IN66? HI LO EQ C CALL 'CVTDAT' DTPRM 66

1 Answers  


What are all the compiler directive statements?

1 Answers  


what is the purpose of the indara keyword?

1 Answers   IBM,


what is the difference between *like and *namvar ?

1 Answers   IBM,


Categories