Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

distinguish between terminating a program through seton lr and return?

0 Answers   IBM,


What is the necessary keyword used in a physical file to refer field definitions from the field reference file?

1 Answers  


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

1 Answers  


What is left outer join?

2 Answers  


What is the draw back of Procedures? why we are going to Modules?

0 Answers  


how you will find an error which is not in the first page of the subfile without using rolldown key?

0 Answers   IBM,


what is qcmdexc?

1 Answers   IBM,


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

21 Answers   Accenture, SNS,


is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.

0 Answers  


What is the use of OVRPRTF ?

1 Answers  


which are the relational operators in rpg?

0 Answers   IBM,


how will you search an array?

0 Answers   IBM,


Categories