Exercises - Using the ARG Instruction

About this task

The left column shows the input values sent to a program. The right column is the ARG instruction within the program that receives the input. What value does each variable receive?
Input
Variables Receiving Input
1. 115 -23 66 5.8
ARG first second third
2. .2 0 569 2E6
ARG first second third fourth
3. 13 13 13 13
ARG first second third fourth fifth
4. Weber Joe 91
ARG lastname firstname score
5. Baker Amanda Marie 95
PARSE ARG lastname firstname score
6. Callahan Eunice 88 62
PARSE ARG lastname firstname score .
ANSWERS
  1. first = 115, second = -23, third = 66 5.8
  2. first = .2, second = 0, third = 569, fourth = 2E6
  3. first = 13, second = 13, third = 13, fourth = 13, fifth = null
  4. lastname = WEBER, firstname = JOE, score = 91
  5. lastname = Baker, firstname = Amanda, score = Marie 95
  6. lastname = Callahan, firstname = Eunice, score = 88

Task Task

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/dfhrx00024.html