XXXXXX.TESTIN.FILE
----+----1----+----2----+----3----
ID1 NAME1 NAME2 NAME3 PHONE1 TYPE1
ID2 NAME4 NAME5 NAME6 PHONE2 TYPE2
Requirement
---------------
User will be asked to enter ID and once user enters ID (=ID1), then remaining field values associated with ID1 (NAME1 NAME2 NAME3 PHONE1 TYPE1) needs to be populted in screen
Present Code
---------------
/* REXX : READ FROM FILE AND DISPLAY IN SCREEN*/
SAY "PLEASE ENTER SYS ID"
PULL SYSID
IF SYSID=""THEN SAY "PLEASE ENTER SYS ID"
ELSE SAY "SYS ID :" SYSID
"EXECIO * DISKR INDD (STEM REC. FINIS"
DO I=1 TO REC.0
SAY REC.I
END
SAY "PLEASE ENTER SYS ID"
PULL SYSID
IF SYSID=""THEN SAY "PLEASE ENTER SYS ID"
ELSE SAY "SYS ID :" SYSID
"EXECIO * DISKR INDD (STEM REC. FINIS"
DO I=1 TO REC.0
SAY REC.I
END
Present OUTPUT IN SCREEN
--------------------------------
PLEASE ENTER SYS ID
ID1
SYS ID : ID1
ID1 NAME1 NAME2 NAME3 PHONE1 TYPE1
ID2 NAME4 NAME5 NAME6 PHONE2 TYPE2
ID1
SYS ID : ID1
ID1 NAME1 NAME2 NAME3 PHONE1 TYPE1
ID2 NAME4 NAME5 NAME6 PHONE2 TYPE2
PRESENT STATUS
--------------------
Right now i am just able to read records from input file into the terminal.
Help required
----------------
It is required to read the remaining field values into screen which are associated with a particular ID (that is feed in screen) [as mentioned above in requirement]
Thanks,
dash