Hey,

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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the different opcodes available in rpg for database access ?

807


What Is The Difference Between Goto & Exsr?

1168


distinguish between terminating a program through seton lr and return?

563


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..?

1478


what is the difference between sflclr and sflinz?

1031






how may a cgi control duplicate inputs?

597


how do you know that records are locked?

1152


what are the different commands used in rlu ?

1452


what is sflrolval?

646


If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...

2176


what is *iso date format?

619


what is scan and xlate?

1080


What is compiler directive in as400? Give example of compiler directive.?

570


Difference between NOPASS & OMIT?

1186


under given circumstances, my cgi should link to another site. How to implement this?

574