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

Show 2 ways to convert a date from YYMMDD to MMDDYY (MULT operation not acceptable)

1 Answers  


how to handle job errors in as400 what is the command and where can we find out whether the job has any errors

2 Answers   Virtusa,


how do we know batch job aborted after we submitting it

1 Answers  


which are the string manipulation opcodes?

0 Answers   IBM,


Is it possible to add an keyfield or field to an Physical file without changing its file identifier. Example : - Say I have an existing physical file which is being used in 5 programs. Now I want to add an additional Keyfield or an field to it and I don't want to recompile the programs.

2 Answers  






For AS/400 Freshers good website is

3 Answers   HCL, HP,


What is the purpose of the following FORDHDR1 CF E WORKSTN $2SFN SFILE FMT2

1 Answers  


What is the difference between access path and Dynamic select?

1 Answers  


Difference between NOPASS & OMIT?

0 Answers  


Can anybody please tell me what is difference between SQL (STRSQL ) and WRKQRY .....?

3 Answers  


which indicator is used for read?

0 Answers   IBM,


To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?

0 Answers   IBM,


Categories