IBM REXX (REstructured EXtended eXecutor) Interview Questions

 
1.
How to access data held on the JES spool?
2.
How to access data in control blocks such as jobname?
3.
How to find or access the current level of a GDG?
4.
How to Run My Rexx Exec?
5.
Suppose i want to code a rexx program in order to get the inputfile and output files of jcl. i want code snippet or the coding for this?
6.
i am getting error while editing macro, its not even entering into the macro, getting error like
31 *-* "EDIT DATASET("DSN"("MEM")) MACRO("CHGLINE")"
+++ RC(-3) +++? any idea
Why?
7.
How to code rexx in jcl to read in a lpar
cpu usage file and select 1. date, time 2. some system names 3. cpu usage for each system. The input file has hourly reporting. The output file (CSV)is for excel use. Run in batch mode. Output in FB?
8.
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.

e.g - The value of X is Y.
Wot is its value?
Do u know its value?
I want to know its value?
9.
I want to code a REXX Program in order to load many tables in a database simultaneously in a batch fashion. Currently batch codes ar available in which only one job is submitted at a time and this loads only one table. My requirement is that many tables should be loaded at a time when one Job is submitted and can this be done using REXX Tool?
10.
How to code the db2 queries using rexx, and also plz send some link and examples using db2 queries?
11.
How to pass parms to ISPF Edit macro?
12.
What do unusual return codes such as -3 and 0196 mean?