Question 1. Explain Icm Instruction?
ICM manner INsert individual beneath masks. Its a motion of character below mask bits.
R8 ==> 12 34 fifty six seventy eight
SRC ==> AB CD EF 10
R8 ==> 12 CD EF 78
Question 2. Can We Use An Equated Value As Operand For An Mvc Instruction? Reason For The Same?
If you write an MVC declaration with an equated price because the sending operand, then the assembler will try to resolve that operand price as a base and displacement, it'll no longer necessarily throw an error at assembly, but the effects at execution will be unpredictable and may nicely supply upward thrust to a safety exception.
The factor of the MVI assertion is that the single byte sending operand fee is assembled as part of the preparation itself and does no longer need to be 'fetched' at execution time, consequently if you are only moving a single byte of fixed value, then an MVI may be marginally more efficient than an MVC
IBM Lotus Notes Interview Questions
Question 3. How To Retrieve The Instream Data In Sysin?
Use Accept in technique department.
01 empno. Pic x(05).
01 empname percent x(15).
01 empsal percent nine(10).
In JCL :
//sysin dd *
Question four. How To Pass The Parameters From Jcl To Assembler Pgm?
R1 incorporates a fullword that consists of a deal with pointing to the parm information. In pgm earlier than accessing the parm records use L Rn,0(,R1) where n=3,..11 , Rn incorporates the cope with that factors to parm facts. Create DSECT that carries a halfword and the period of the records.
IBM Lotus Notes Tutorial
Question five. What Will Happen If We Drop The Base Register In The Pgm Which Contains Only One Base Reg?
It will supply an errors on the time of assembly, if there are a few labels defined within the program(supplied they're being referenced for your program). This is because the assembler resolves the displacement of that variable from the place where your base sign up is pointing to.
IBM - AS/400 Interview Questions
Question 6. Why Do We Have Multiple Base Registers In Certain Programs?
all of it depends upon the length of your software , if it's miles extra than 4095 then we need 2 sign up else best you could do needful. Basically we will even use savearea sign up as a base check in, so as to accomodate the length of this system
Question 7. What Is The Difference In Data Type "x" And "p"?
In MVS assembler records kind X denotes hexadecimal records kind which unsigned percent. Assume you outline VAR1 as "VAR1 DC X'01'".
It will occupy 1 byte inside the reminiscence and saved as:
0 in the zoned nibble and 1 within the numeric nibble.
P denotes the packed information kind, much like COMP-3 in COBOL.
In case you declare any variable with this data kind then it need to have a sign byte at last nibble.
See following example:
VAR2 DC P'1'
it will occupy one byte in the reminiscence and saved as '1C'.
IBM - AS/400 Tutorial IBM - VSAM Interview Questions
Question 8. Why Do We Use "drop"? What Does "using" Do?
Neither DROP nor USING affect the sign up contents. Once a check in has been loaded with the address of a bit of storage, the using announcement may be used to 'map' that garage in opposition to a set of labels defining the layout of that storage e.G. A DSECT. Then each time one of those labels is referenced inside the code, in moves etc, the assembler resolves the relative address as a selected displacement from absolutely the deal with in the sign up. The DROP practise gets rid of the relationship among the labels and the sign in and renders next references to the ones labels as unresolvable, giving upward push to mistakes at assembly (bring together)time.
Typically the DROP training may be used to allow use of the sign in for any other purpose, e.G. Deal with a one of a kind bit of garage via a the use of staement on 2d DSECT without the chance of corrupting that records through movements referencing the authentic DSECT.
Question nine. How To Initialize A Register To 0000?
This is the quality way and most efficient manner of initializing
the sign in values or Label values to 'zero'.
Its due to the fact the time required to execute a Logical
Instruction is continually less than the Arithmetic Instructions.
E.G SR Rx,Rx consumes extra execution time than XR Rx,Rx.
So XR Rx,Rx is a higher way to do attain our target.
IBM Cognos Interview Questions
Question 10. What Is House Keeping In Assembler? And Explain The Following Code <br>hellotso Start zero <br>* Print Nogen <br>start Save (14,12) <br>lr 12,15 <br>the use of Type,12 <br>st thirteen,save+four <br>l. A. Eleven,save <br>st 11,eight(13) <br>lr 13,11
House maintaining is used to store the contents of the base sign up from one sign in to some other for the usage of that register. These are house preserving instructions in which contents of the registers are saved
content material of the check in 15 is stored in the register 12
cope with in reg 12 is mapped to the module type
keep place is saved within the register 13
IBM Cognos Tutorial
Question 11. What Is Base Register?
A base check in is any wellknown motive check in chosen through programmer. It is assigned at the beginning of the program as part of house responsibilities with the USING assembler keyword, and it's purpose is to preserve addressibility inside a web page (4k) of code or information.
IBM Informix Interview Questions
Question 12. Why Can Only 256 Bytes Be Moved From One Address To Another In A Mvc?
Lenght feild is 8 bits so the statistics is saved in binary format so if we've all 8 bits set to one then the period will be 128+64+32+sixteen+8+four+2+1 = 255.Or 2^7+ 2^6+2^5...2^0 = 255.
So the lenght is 256 .
IBM Lotus Notes Interview Questions
Question 13. How Are Data Passed From Jcl Parm To Assembler Program. And How Is Data Passed From A Calling Program To An Assembler Called Program?
By conference, standard motive sign in 1 will have the cope with of the parameter list. The listing might be a list of recommendations (addresses) to man or woman parameters. The CALL macro does this, however you can bypass the CALL macro and be innovative on how you installation the parameter listing. Don't overlook the parameter ought to be on a fullword boundary.
IBM DB2 Tutorial
Question 14. What Is The Use Of Trt Instruction And How It Is Working?
For instance we need to check if given variable is numeric we will do it by means of following code.
We can outline a desk with all FF execpt from zero to 9 00
Table1 DC 256c'ff'
Now we are able to deliver TRT var1,table1
Question 15. What Is Need Of Start 0? In Steed Of
START is an assembler directive which has an non-obligatory operand, (zero on your example). This operand acts because the beginning address of this system e.G. PROGNAME START X'3E0' tells the linkage editor that this program is to be loaded into fundamental garage at deal with '3E0' in hex.
IBM DB2 Interview Questions
Question 16. How Do You Round The Addition Or Subtraction Of Two Numbers In Assembler?What Does The Following Code Do? Ap Wkur,=p5 Where Wkur Is A Label?
This is a indistinct -element question.
You can spherical by way of adding .Five
Adds five to WKUR, however it had higher be a valid packed subject, and now not only a label.
Windows 10 Tutorial
Question 17. How Many Maximum Base Registers We Can Have In A Program And Also How Many Maximum Base Registers We Can Have In A Single Program?
There are sixteen registers, and ALL can be used as a base EXCEPT for sign in 0, so the solution is AT LEAST 15. AT LEAST is detailed right here due to the fact in any section of code, you can "re-use" a preceding base sign up once you are now not within the original deal with range ("scope") of that precise base register. By re-the usage of the registers, you could have base registers with a view to cover ALL of the reminiscence within the device - however now not abruptly - you need to "chew off" 15 base reg-at-a-time chunks of memory (all addressable memory does not ought to be contiguous - it is able to be scattered around reminiscence in 4K portions).
IBM AIX Interview Questions
Question 18. How To Pass Instream Data In Sysin With Assembler?
You will want to open de file SYSIN via a DCB and read the records thru GET commands. The facts inside the PARM field is passed via sign up 1. Any dataset you want to use in Assembler you may need to open. There aren't any computerized allocation.
IBM - AS/400 Interview Questions
Question 19. Can We Use Mvc Instruction To Move Pack Field To Pack Field. Which Instruction You Will Use And Why?
We can simply use the MVC practise to transport the percent records to every other percent field.
Question 20. How To Initialize 20,000 Bytes In The Assembler?
because the system-code for MVC actions as much as 256 bytes, you'll need to do a series of MVCs to initialize 20000 bytes. This calls for that you hold a sign in or to hold song of ways some distance you have stepped forward thru initialization.
Probably, you may get MVCL to do it; i have by no means attempted...
MVCL uses 2 sets of even-ordinary pairs of registers to do the flow.
You specify supply cope with, vacation spot cope with, length of source, duration of destination, and fill character in the registers. The fill-person is going into the high order byte of (I THINK...) the destination period sign up (in this case r4)
los angeles r7,source_field
los angeles r5,dest_field
Solaris Interview Questions
Question 21. Write The Fetch Cycle And Execute Cycle For Following Instructions:jmpnz (leap To The Given Address If The Accumulator Not Equal To Zero) Ret(go back From A Subroutine) Adb (upload The Contents Of Register B To The Accumulator And Save Result In The Accumulator)?
As this is mainframe assembler phase, this is a trick query - there's no JMPNZ opcode for mainframe (currently delivered JNZ with relative addressing within the z/800 and later,but no JMPNZ) and the mainframe has no RET practise (there's a PR to return from a cross address space or PC "name" declaration) and the mainframe has no accumulator, ADB opcode, or B sign in.
Question 22. What Is The Difference Between Various Read And Find Statement,and Which One Should Be Used When For Better Adabas Performance?
There are feasible eventualities:
This is a school room quesiton wherein you're expected to do some studies to your personal, and now not ask someone in the cloud for the precise solution.
The question is too indistinct, and might require a complete essay to reply. Please be extra particular.
Question 23. Registers(0-15) ,in which They Are Going Be Resides Does That Mean Here Is It Resides Whether Real Or Virtual Memory? And Why?Then Why We Are Assign Even Registers(0 To 6) For Fp Operations?
Registers are a part of the CPU logic and must not be stressed with memory real or digital. The query is set as sensical as asking where the uterus resides in a man. Also, trendy reason registers zero--16 are a wholly distinctive breed that the floating point registers. As for the numbering, a selection made via the manufacturer's layout humans.
IBM Lotus Domino Interview Questions
Question 24. How To Produce Soc7 Abend?
S0C7 occurs whilst the statistics exception occurs.They are many ways to produce S0C7
Move non numeric information to a numeric feild
Compare junk records with a numeric feild
Use a non numeric records in COMPUTE statement
Refer to the occurence in a desk beyond the occurs time with SSRANGE no longer checked in complier alternatives
IBM - VSAM Interview Questions
Question 25. How To Access Vsam File?
VSAM file may be accessed via an Assembler software program by way of the usage of assembler macros RPL, ACB
Question 26. Change Process Tool(code Changes From Dev To Prd) The Changes Made To Your Code Should Be Effected In Live. How The Process Takes Place. That Is How Can You Move The Code Changes From Development To Production?
If there is any updates in the Macros regarding the structure trade or addition/elimination of byte, then you definately want to Promote the macro to Live first.
Reassemble your codes towards the Live Macros.
Raise ELAS for the Codes to visit production.
Promote the codes to manufacturing.
IBM Cloud Computing Infrastructure Architect V1 Interview Questions
Question 27. Explain About Maximum Displacement And How To Cross This Limit?
Assuming displacement is referring to x(d,b) addressing and now not some thing like displacement from the begin of a CSECT.
IBM Cognos Interview Questions