InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Why Is There No Os/2 (ecs) Port Of Oorexx? |
|
Answer» The source code provided to RexxLA was maintained by one group of IBM DEVELOPERS. The source code for OS/2 is maintained by a different group of IBM developers, and that source code BASE was not supplied to RexxLA. One of the future tasks for this project is to PORT the OPEN Source code for ooRexx to OS/2. The source code provided to RexxLA was maintained by one group of IBM developers. The source code for OS/2 is maintained by a different group of IBM developers, and that source code base was not supplied to RexxLA. One of the future tasks for this project is to port the Open Source code for ooRexx to OS/2. |
|
| 2. |
When Will A Port Of Oorexx To "xyz" Be Available? |
|
Answer» Any POSIX-based, Unix-like platform is likely to already be AVAILABLE in the source distribution DUE to the use of the autoconf toolset. If not, then support for the PARTICULAR platform will need to be implemented in a FUTURE version of ooRexx. Any POSIX-based, Unix-like platform is likely to already be available in the source distribution due to the use of the autoconf toolset. If not, then support for the particular platform will need to be implemented in a future version of ooRexx. |
|
| 3. |
What Is The Difference Between Oorexx And Ibm's Object Rexx For Windows? |
|
Answer» IBM's Object REXX was available in two formats; an Interpreter Edition and a DEVELOPMENT Edition. OOREXX will be available in one format which is half way between the two IBM offerings. There will be no functional DIFFERENCE between the Object REXX and ooRexx interpreters; code written for Object REXX will WORK with ooRexx. IBM's Object REXX was available in two formats; an Interpreter Edition and a Development Edition. ooRexx will be available in one format which is half way between the two IBM offerings. There will be no functional difference between the Object REXX and ooRexx interpreters; code written for Object REXX will work with ooRexx. |
|
| 4. |
Is There An Aix Version Of Oorexx? |
|
Answer» OOREXX for AIX is AVAILABLE STARTING with the 3.1 RELEASE. ooRexx for AIX is available starting with the 3.1 release. |
|
| 5. |
Is Oorexx Compatible With Rexx? |
|
Answer» YES! Yes! |
|
| 6. |
Is Oorexx Compatible With Ibm Object Rexx? |
|
Answer» YES! Yes! |
|
| 7. |
If I Have Limited Experience With Rexx Or It's Been A Long Time Since I've Used It, What Kind Of Help Is Available To Get Me Started? |
|
Answer» uni-REXX comes with a sample library that includes a examples of a variety of application types. These include:
uni-REXX comes with a sample library that includes a examples of a variety of application types. These include:
|
|
| 8. |
How Long Does The Install Of Oorexx Take? |
|
Answer» 30 SECONDS or LESS, DEPENDING on your HARDWARE. 30 seconds or less, depending on your hardware. |
|
| 9. |
Have You Already Used Rexx - Even For Limited Purposes? Do You Need To Maintain A High Level Of Productivity During Your Transition To Unix? |
|
Answer» Further, uni-REXX is very easy to use, even if your previous experience with it is limited. The syntax is very natural (English-like); there are no DATA types to declare; interpretive execution facilitates rapid development and DEBUGGING; and the interface to the operating SYSTEM is SEAMLESS. Further, uni-REXX is very easy to use, even if your previous experience with it is limited. The syntax is very natural (English-like); there are no data types to declare; interpretive execution facilitates rapid development and debugging; and the interface to the operating system is seamless. |
|
| 10. |
Can Oorexx Run Normal Rexx Programs? |
|
Answer» YES! Yes! |
|
| 11. |
Can Oorexx Run Ibm Object Rexx Programs? |
|
Answer» YES! Yes! |
|
| 12. |
Can I Redistribute Oorexx Freely With Commercial Software? |
|
Answer» YES!. Yes!. |
|
| 13. |
Can I Cleanly Uninstall Oorexx? |
|
Answer» YES!. Yes!. |
|
| 14. |
How To Pass Parms To Ispf Edit Macro? |
|
Answer» On the command LINE in the editor, just use the name of the macro and list the PARAMETERS behind it. E.g. if you have a macro called FINDALL and it expects 3 parameters you would specify in the command line: FINDIT parm1 parm2 parm3. Since you are working with REXX you could have used: Address ISREDIT "MACRO ( parm )"You then parse the parm like this: Parse (UPPER) ARG parm parm1 parm2 parm3.On the command line in the editor, just use the name of the macro and list the parameters behind it. E.g. if you have a macro called FINDALL and it expects 3 parameters you would specify in the command line: FINDIT parm1 parm2 parm3. Since you are working with REXX you could have used: You then parse the parm like this: |
|
| 15. |
Suppose If There Are A Set Of Statements And Each Has A Word "value" In It, If I Want To Display All These Statements So That The Word "value" Is Aligned, Then How Do I Code This In Rexx? |
|
Answer» Answer : /**REXX**/ ADDRESS TSO "ALLOC DD(INP1) DA('input-dataset') SHR REUS" "EXECIO * DISKR INP1 (STEM IN1. FINIS" MAX_OFFSET = 0 INP_OFFSET = 0 DO I = 1 TO IN1.0 PARSE UPPER VAR IN1.I INP INP_OFFSET = POS("VALUE",INP) IF INP_OFFSET > MAX_OFFSET THEN DO MAX_OFFSET = INP_OFFSET END END DO I = 1 TO IN1.0 PARSE UPPER VAR IN1.I INP Z = POS("VALUE",INP) SAY LEFT(SUBSTR(IN1.I,1,(Z - 1)),(MAX_OFFSET - 1))||, SUBSTR(IN1.I,Z,20) END "FREE DD(INP1)" |
|
| 16. |
How To Access Data In Control Blocks Such As Jobname? |
|
Answer» USE the Storage() function to extract the data from CONTROL blocks. /* REXX Get taskname from TCB */ cvt = storage(10,4) /* FLCCVT-PSA data area */ tcbp = storage(d2x(c2d(cvt)),4) /* CVTTCBP */ tcb = storage(d2x(c2d(tcbp)+4),4) TIOT = storage(d2x(c2d(tcb)+12),4) /* TCBTIO */ say strip(storage(d2x(c2d(tiot)),8)) /* TIOCNJOB */Use the Storage() function to extract the data from control blocks. |
|
| 17. |
How To Access Data Held On The Jes Spool? |
|
Answer» Held output (JES2 or JES3) can be captured by outtrapping the output of the following command: "OUTPUT JOBNAME PRINT(*) KEEP".Use command HELP OUTPUT for more information. Furthermore there are output tools you can buy like SDSF, IOF, (E)JES, etc. But not all of these have got a rexx interface. Held output (JES2 or JES3) can be captured by outtrapping the output of the following command: Use command HELP OUTPUT for more information. Furthermore there are output tools you can buy like SDSF, IOF, (E)JES, etc. But not all of these have got a rexx interface. |
|
| 18. |
Can I Combine Uni-rexx With A Compiled Language In My Application? What Application Programming Interfaces Are Available? For Example, Can I Share Variables Between Uni-rexx And A Compiled Language? |
|
Answer» uni-REXX offers a complete set of Application Programming Interfaces (APIs). These APIs allow you to
uni-REXX offers a complete set of Application Programming Interfaces (APIs). These APIs allow you to |
|
| 19. |
Does Uni-rexx Give Me Any Capabilities Designed Specifically For The Unix Environment? |
|
Answer» In addition to the standard language features, uni-REXX includes a rich set of functions designed specifically for a UNIX environment. These functions can be CLASSIFIED into the following categories (with examples of each SHOWN in parenthesis):
In addition to the standard language features, uni-REXX includes a rich set of functions designed specifically for a UNIX environment. These functions can be classified into the following categories (with examples of each shown in parenthesis): |
|
| 20. |
What If I Need To Have The Same Application Running On Multiple Platforms, Such As Unix And The Mainframe? Does That Mean I Have To Maintain Two Separate Sources? |
|
Answer» Not at all. REXX includes an instruction that allows you to determine the environment in which your PROGRAM is running. PARSE SOURCE will give you a string in which the first TOKEN is the NAME of the system where the program is running. For uni-REXX, this is "UNIX"; on the mainframe, it would be "CMS" or "TSO". Then you can put conditional processing into your program based on the current execution environment. In a program that needed to display a current listing of files, you might set your master source up something like this: parse source env: select when env = 'UNIX' then command = 'ls' when env = 'CMS' then command = 'listf' when env = 'TSO' then command = 'listc' otherwise call OS_error_routine end : : [ to do a list command, you write]> : command /* value is sent to OS */Not at all. Rexx includes an instruction that allows you to determine the environment in which your program is running. PARSE SOURCE will give you a string in which the first token is the name of the system where the program is running. For uni-REXX, this is "UNIX"; on the mainframe, it would be "CMS" or "TSO". Then you can put conditional processing into your program based on the current execution environment. In a program that needed to display a current listing of files, you might set your master source up something like this: parse source env: |
|
| 21. |
Can I Port My Existing Applications From The Mainframe Or Os/2? Will There Be Extensive Changes Required To Do This? |
|
Answer» "Yes, you can port existing applications with a minimum of modification". Only the following modifications are normally REQUIRED:
If your Rexx program is primarily a series of operating system commands, then it may not be a good candidate for direct portation. It may be, however, that the functions it performs have reasonable counterparts in the UNIX environment and the program can be converted to execute the equivalent UNIX functions. "Yes, you can port existing applications with a minimum of modification". Only the following modifications are normally required: If your Rexx program is primarily a series of operating system commands, then it may not be a good candidate for direct portation. It may be, however, that the functions it performs have reasonable counterparts in the UNIX environment and the program can be converted to execute the equivalent UNIX functions. |
|
| 22. |
What Would I Use Uni-rexx For? |
|
Answer» uni-REXX can be used for a wide variety of purposes. The most popular include:
uni-REXX can also be embedded as a scripting language or system-control language in other applications. uni-REXX can be used for a wide variety of purposes. The most popular include: uni-REXX can also be embedded as a scripting language or system-control language in other applications. |
|
| 23. |
For Which Platforms Is Uni-rexx Available? |
|
Answer» uni-REXX is now AVAILABLE on SUN's Solaris 7/8/9, H/P's HP/UX 10/11, IBM's AIX 4/5, SGI's IRIX 5/6, NCR UNIX, LINUX Intel and S/390. uni-REXX is now available on SUN's Solaris 7/8/9, H/P's HP/UX 10/11, IBM's AIX 4/5, SGI's IRIX 5/6, NCR UNIX, Linux Intel and S/390. |
|
| 24. |
What Is Uni-rexx? |
|
Answer» uni-REXX is a UNIX IMPLEMENTATION of IBM's popular Rexx programming language as DEFINED by M. F. Cowlishaw in the Rexx Language. uni-REXX is a UNIX implementation of IBM's popular Rexx programming language as defined by M. F. Cowlishaw in the Rexx Language. |
|