Self-test TSO/E REXX. Document: e0167test.fm 19/04/2012. ABIS Training & Consulting P.O. Box 220 B-3000 Leuven Belgium

Similar documents
Rexx Power Tools - The PARSE Command

REXX programming for the z/os programmer

Self-test Programming Fundamentals

IBM. TSO/E REXX User's Guide. z/os. Version 2 Release 3 SA

Self-test ISPF/PDF basics

8) Subroutines and functions

Also, if you need assistance with any of the lab material or exercises, please raise your hand and someone will come to assist you.

Language Basics. /* The NUMBER GAME - User tries to guess a number between 1 and 10 */ /* Generate a random number between 1 and 10 */

TSO/E REXX User s Guide

Chapter 2 REXX STATEMENTS. SYS-ED/ Computer Education Techniques, Inc.

See the mechanics of how to do this for a cycle-driven process with a high degree of usability and easy job output management.

5) Debugging and error trapping

Legac-E Education. Passing Parameters. to COBOL sub-routines

z/os Learning Center: Introduction to ISPF Unit 1: The Basics of ISPF and Data Sets Module 3: ISPF Data Set Basics

SAS Interfaces to ISPF and REXX

IBM. User Guide and Reference. REXX for CICS Transaction Server. Version 1 Release 1

ISPF Users Boot Camp - Part 2 of 2

IBM. TSO/E System Programming Command Reference. z/os. Version 2 Release 3 SA

IBM Systems. Introduction to z/vm Rexx Hands-on Lab. Updated with answers to lab exercises

Decision Making using the IF Statement. Logical Control Structures

z/os Learning Center: Introduction to ISPF Unit 2: Editing with ISPF Module 2: Using ISPF Editing Commands

Introduction to REXX Workshop

Using the PowerExchange CallProg Function to Call a User Exit Program

Practical Usage of TSO REXX

Additional Operands Using Existing Datasets

IBM Education Assistance for z/os V2R3

Chapter 2 TSO COMMANDS. SYS-ED/ Computer Education Techniques, Inc.

Relational Data Services. Basics

JCL Syntax Running a Simple Job

IBM Software. REXX Language Coding Techniques. Tracy Dean, IBM June , 2015 IBM Corporation

SHARE 119 August IBM Corporation. The information contained in this presentation is provided for informational purposes only.

Self-test DB2 for z/os Fundamentals

REXX Language Coding Techniques

IBM. TSO/E User's Guide. z/os. Version 2 Release 3 SA

REXX For PIE/CICS User Guide. Release 3.3.0

z/os Version 2 Release 3 TSO/E User's Guide IBM SA

This book is licensed under a Creative Commons Attribution 3.0 License

IBM Software. REXX Language Coding Techniques SHARE Session # Tracy Dean, IBM 2014, 2015 IBM Corporation

REXX Language Coding Techniques

IBM Software. REXX Language Coding Techniques. SHARE Session # Tracy Dean, IBM August IBM Corporation

Functions and CALL Routines

CustomPac FTPCSI Utility User Guide

Rexx Tutorial for Beginners, 2

Open Object Rexx. Programming Guide. Version Revision 3 Edition November 11, 2005

Parsing Scheme (+ (* 2 3) 1) * 1

CBL Subroutines User's Guide

BEPI FOR PROGRAMMERS

CA8B: CICS Transaction Server for OS/390 - BMS Map CWI conversion utility. Version 1.0

Rule 1-3: Use white space to break a function into paragraphs. Rule 1-5: Avoid very long statements. Use multiple shorter statements instead.

CA Mainframe Network Management

XEDIT, EXECs & PIPES. Bob Bates Wells Fargo Bank

RDz Workbench z/os Integration through Menu Manager

Uni Hamburg Mainframe Summit z/os The Mainframe Operating. Part 2 TSO, ISPF und Unix Shell. Introduction to the new mainframe

Workflow Manager Endevor Attachment

Enterprise Modernisation. Customising RDz with Menu Manager. A.Rudd, Datev eg 1

Workflow Manager - ENDEVOR Attachment

C-LANGUAGE CURRICULAM

variable, and executes a clist.

The SPL Programming Language Reference Manual

CA PDSMAN PDS Library Management CA RS 1404 Service List

COBOL MOCK TEST COBOL MOCK TEST III

Topics. Chapter 5. Equality Operators

DB2 QMF Data Service Version 12 Release 1. Studio User's Guide IBM SC

CA Date Logic Generator. Installation and Reference Manual

Lippert Quoting Application Help Document

MVS/QuickRef - Tailoring QW

Inno Setup Preprocessor: Introduction

RUNC Easy Commands for the ISPF Edit User

CS61C Machine Structures. Lecture 5 C Structs & Memory Mangement. 1/27/2006 John Wawrzynek. www-inst.eecs.berkeley.edu/~cs61c/

In the September 1996 issue of Technical Support I presented an article

IBM Transaction Analysis Workbench for z/os. Lab

CSE 115. Introduction to Computer Science I

CA JCLCheck Workload Automation CA RS 1404 Service List

Browsing MVS Control Blocks Using DDLIST/ISRDDN Under ISPF.

In mainframe environment, programs can be executed in batch and online modes. JCL is used for submitting a program for execution in batch mode.

CA Software Change Manager for Mainframe

CSE P 501 Exam 12/1/11

Interactive System Productivity Facility (ISPF)

QCOPYPRP Sample COBOL WMQ CICS Copy messages adding Message Properties QCOPYPRP. Sample COBOL CICS WMQ Program Copy messages and apply a property

See Types of Data Supported for information about the types of files that you can import into Datameer.

CustomPac FTPCSI Utility User Guide

Implementing a Web Server on OS/390: Part III Writing Common Gateway Interfaces and Installing Java Virtual Machine

IBM Student Mainframe Challenge Part Two

IBM InfoSphere Classic Federation for z/os Version 11 Release 1. Installation Guide GC

Rexx Parse Templates. Chip.

ISPF at EI&O UFIT. UF Information Technology. EI&O Document ID: D0040 Last Updated: 06/28/2002

CS61C Machine Structures. Lecture 4 C Structs & Memory Management. 9/5/2007 John Wawrzynek. www-inst.eecs.berkeley.edu/~cs61c/

Chapter 2 CODING. SYS-ED/ Computer Education Techniques, Inc.

Definition Checklist for Source Statement Counts

C/C++ Programming for Engineers: Matlab Branches and Loops

Section 1. The essence of COBOL programming. Mike Murach & Associates

6/3/2011 TSO Tutorial. TSO Tutorial

IBM Education Assistance for z/os V2R2

Cisco IOS Shell. Finding Feature Information. Prerequisites for Cisco IOS.sh. Last Updated: December 14, 2012

QUEST Procedure Reference

CS 4240: Compilers and Interpreters Project Phase 1: Scanner and Parser Due Date: October 4 th 2015 (11:59 pm) (via T-square)

TSO/ISPF TIPS By:

Appendix B WORKSHOP. SYS-ED/ Computer Education Techniques, Inc.

CA JCLCheck Workload Automation CA RS 1605 Service List

Self-test Linux/UNIX fundamentals

Transcription:

Self-test TSO/E REXX Document: e0167test.fm 19/04/2012 ABIS Training & Consulting P.O. Box 220 B-3000 Leuven Belgium TRAINING & CONSULTING

INTRODUCTION TO THE SELF-TEST TSO/E REXX This test will help you determine if you ve obtained the objectives of the course TSO/E REXX, or if you would benefit from following the course. The test itself consists of 20 multiple-choice questions. This will take you 15 to 20 minutes to complete. Some questions only have one answer. Others have multiple answers. In that case, the number of expected answers is indicated. Write down your answer(s) and compare with the given solutions which you can find at the end. Depending upon your score, you will also find our recommendation concerning the course TSO/E REXX. 19/04/2012 Self-test TSO/E REXX 2

QUESTIONS SELF-TEST TSO/E REXX 1. Complete correctly: A REXX program (or REXX EXEC) called DEMO is stored in the partitioned dataset TBISUSR.REXXCRS.EXEC. Execution is possible... O (a)... via the TSO command: EXEC 'TBISUSR.REXXCRS.EXEC(DEMO)' EXEC, without any additional allocation. O (b)... only after allocation of the partitioned dataset TBISUSR.REXXCRS.EXEC to the DD NAME SYSEXEC, via the command: TSO DEMO. O (c)... via the TSO command: CALL 'TBISUSR.REXXCRS.EXEC(DEMO)', without any additional allocation. O (d)... only after compilation to COBOL, and via the TSO command: CALL 'TBISUSR.REXXCRS.EXEC(DEMO)'. 2. Indicate what is not correct in a REXX program. O (a) A REXX clause can be coded in uppercase, lowercase or mixed case. O (b) Multiple instructions can be coded on 1 line, as long as they are separated by a ',' O (c) A REXX program should start with a comment clause /* REXX */ O (d) Continuation of REXX instructions is achieved by using a ',' as a continuation indicator 3. Complete correctly: When defining a variable in REXX, one can use up to 250 characters to name the variable. The initial value will be... O (a)... all blanks O (b)... the NULL value O (c)... the name of the variable in the same (mixed) case as the name. O (d)... the name of the variable in uppercase 4. Consider the following: name = 'John' number1 = number2 number2 = 5 Which of the following REXX expressions will generate an error? O (a) 10 / number1 O (b) name 'number2' O (c) number2 * 3 O (d) name > number2 19/04/2012 Self-test TSO/E REXX 3

5. Consider the following clauses: var_1 = 2 var_2 = 3 IF var_1 = var_2 THEN var_3 = var_1 var_4 = var_2 var_5 = var_2 + var_1 ELSE var_3 = var_2 var_4 = var_1 var_5 = var_2 - var_1 SAY "result = " var_3 var_4 var_5 What will happen when this REXX is executed: O (a) output on the terminal: result = 2 3 5 O (b) output on the terminal: result = 3 2 1 O (c) output on the terminal: result = var_3 var_4 var_5 O (d) the program will terminate with an error 6. Which of the following are correct? (2 answers) [_] [a] IF var_1 = var_2 THEN var_1 = var_1 + 1 ; ELSE var_1 = var_1 + 2 [_] [b] IF var_1 = var_2 THEN var_1 = var_1 + 1 ELSE var_1 = var_1 + 2 [_] [c] [_] [d] IF var_1 = var_2 THEN DO var_1 = var_1 + 1 ELSE var_1 = var_1 + 2 IF var_1 = var_2 DO THEN var_1 = var_1 + 1 ELSE var_1 = var_1 + 2 19/04/2012 Self-test TSO/E REXX 4

7. Which is correct? O (a) CASE WHEN expression_1 THEN action-1 WHEN expression_2 THEN action-2 OTHERWISE action-3 O (b) SELECT WHEN expression_1 THEN action-1 WHEN expression_2 THEN action-2 OTHERWISE action-3 O (c) CASE WHEN expression_1 THEN action-1 WHEN expression_2 THEN action-2 ELSE action-3 O (d) SELECT WHEN expression_1 THEN action-1 WHEN expression_2 THEN action-2 ELSE action-3 8. Complete correctly: The EXIT clause ends... O (a)... a loop unconditionally and continues with the next clause after the loop. O (b)... a loop and EXEC unconditionally, but doesn't return to the caller of the EXEC. O (c)... a loop and EXEC unconditionally, returns to the caller of the EXEC and provides a return code. O (d)... a loop and EXEC unconditionally, returns to the caller of the EXEC, but doesn't provide a return code. 9. To receive input from the screen, we use the command: O (a) READ O (b) PULL O (c) ACCEPT O (d) RECEIVE 19/04/2012 Self-test TSO/E REXX 5

10. Indicate the correct statement: REXX functions consist of a function name, immediately followed by its arguments coded between parentheses and separated by commas. O (a) This is only true if there are arguments, otherwise the parentheses must be excluded. O (b) This is also true if there are no arguments, but the parentheses can be omitted. O (c) This is also true if there are no arguments, the parentheses must be included. O (d) This is always true, since there are no functions without arguments. 11. Given that var_1 = 'Abc123', what is the result of DATATYPE(var_1,N)? O (a) '123' O (b) 'Abc123' O (c) 1 O (d) 0 12. What is the result of TRUNC(12.3456,3)? O (a) 12.3 O (b) 12.3000 O (c) 12.346 O (d) 12.345 13. Complete correctly: When calling a subroutine with the clause CALL 'SUBROUT1',... O (a)... the external subroutine SUBROUT1 will be executed, bypassing any internal subroutines. O (b)... the internal subroutine SUBROUT1 will be executed; external subroutines aren't called. O (c)... the internal subroutines will be searched for SUBROUT1; only if there isn't an internal one, the external SUBROUT1 will be executed. O (d)... an error will occur; subroutine names must never be coded between quotes. 19/04/2012 Self-test TSO/E REXX 6

14. Concerning the shielding of variables of an internal subroutine from the main EXEC part, which of the following is correct: O (a) One can not shield variables in a subroutine from the main EXEC, only from other subroutines. O (b) One can shield the variables by using the clause: CALL SUBROUT1 PROCEDURE O (c) One can shield the variables by defining the start clause of a subroutine: SUBROUT1: PROCEDURE O (d) One can shield the variables by defining the start clause of a subroutine: SUBROUT1: SHIELDED 15. When a RETURN clause is used in a subroutine, a value can be passed back to the calling EXEC. Which statements are correct? (2 answers) [_] [a] [_] [b] [_] [c] [_] [d] This value must be numeric. This value can be alphanumeric. This value is stored in the system variable RC. This value is stored in the system variable RESULT. 16. If I want to fill the variable DAY with '01', the variable MONTH with 'January' and the variable YEAR with '2009', which would be a correct way to do so, if the data '01 January 2009' is read from the input screen? O (a) PARSE PULL DAY MONTH YEAR O (b) PULL DATE PARSE VALUE DATE DAY MONTH YEAR O (c) PULL DATE PARSE VALUE DATE WITH DAY MONTH YEAR O (d) PULL DATE PARSE VAR DATE DAY MONTH YEAR 17. To pass commands to a specific host environment (ex. TSO), which clause must be used? O (a) HOST TSO O (b) HSTADDRS TSO O (c) ADDRESS TSO O (d) EXEC TSO 19/04/2012 Self-test TSO/E REXX 7

18. REXX has extended tracing possibilities, even interactively. Which command activates the interactive trace? O (a) TRACE R O (b) TRACE?R O (c) TRACE IR O (d) INTTRACE R 19. Complete correctly (2 answers): Stem variables are used in REXX... [_] [a]... for loop processing as e.g. DO STEM = 1 TO 10 var(stem) = x [_] [b]... for using hidden variables as e.g. INFO[STEM] = "secret information" [_] [c]... for working with static arrays e.g. MONTH.1 = "January" MONTH.2 = "February"... MONTH.12 = "December" [_] [d]... for working with dynamic lists of variables e.g. DO LOOP = 1 PULL VAR.LOOP IF VAR.LOOP = 'STOP' THEN LEAVE 20. What is no prerequisite for using the EXECIO command? O (a) The dataset must be sequential or a member of a partitioned dataset. O (b) The dataset must be allocated to a file name or DD name. O (c) The dataset must be exclusively enqueued (DISP=OLD or NEW). O (d) TSO or MVS environment must be active. 19/04/2012 Self-test TSO/E REXX 8

EVALUATION. Here are the correct answers to all questions: 1. a 2. a 3. d 4. a 5. d 6. a c 7. b 8. c 9. b 10. c 11. d 12. d 13. a 14. c 15. b d 16. a 17. c 18. b 19. c d 20. c Give 1 point per correctly answered question. A question is correctly answered if all indicated answers are given. If your score is more than 80%, you do not have to follow the course. You have now mastered the necessary knowledge to follow the course Advanced TSO/E REXX. When you have a score between 50% and 80%, following the course TSO/E REXX can improve your knowledge. When your score is less than 50%, we strongly suggest you to follow this course TSO/E REXX. 19/04/2012 Self-test TSO/E REXX 9