I am writing a REXX tool, in which I have a requirement to call File-AID tool (lets assume Panel-1 and Panel-2). While calling File-AID tool I need to pass the option, and navigate to next panel (panel-2) and REXX should pass few more values to panel-2.
Lets assume, I am calling "Primary Option Menu" from my REXX. While calling I should be able to pass the option 1, from REXX (Please refer below).
File-AID 9.2.0 ------------- Primary Option Menu -----------------------
OPTION ===> 1 ==> This option should be taken from REXX
0 PARAMETERS- Specify ISPF and File-AID parameters
1 BROWSE - Display file contents
2 EDIT - Create or change file contents
3 UTILITIES - File-AID/SPF extended utilities
5 PRINT - Print file contents
6 SELECTION - Create or change selection criteria
7 XREF - Create or change layout cross reference
8 VIEW - View interpreted record layout
9 REFORMAT - Convert file from one format to another
10 COMPARE - Compare file contents
C CHANGES - Display summary of File-AID changes
T TUTORIAL - Display information about File-AID
X EXIT - Terminate File-AID and return to ISPF
Use END to terminate File-AID
OPTION ===> 1 ==> This option should be taken from REXX
0 PARAMETERS- Specify ISPF and File-AID parameters
1 BROWSE - Display file contents
2 EDIT - Create or change file contents
3 UTILITIES - File-AID/SPF extended utilities
5 PRINT - Print file contents
6 SELECTION - Create or change selection criteria
7 XREF - Create or change layout cross reference
8 VIEW - View interpreted record layout
9 REFORMAT - Convert file from one format to another
10 COMPARE - Compare file contents
C CHANGES - Display summary of File-AID changes
T TUTORIAL - Display information about File-AID
X EXIT - Terminate File-AID and return to ISPF
Use END to terminate File-AID
After passing option 1 to the panel, REXX should give enter command so, that screen navigates to next screen (panel-2). Here again REXX should pass "USER.PROJ.COPYBOOK" and "CPYBOOK" to the current panel (panel-2).
File-AID -------------- Browse - Dataset Specification ---------------------
COMMAND ===>
Browse Mode ===> F (F=Fmt; C=Char; V=Vfmt; U=Unfmt)
Specify Browse Information:
Dataset name or HFS path ===> 'USER.PROJ.INPUT'
Member name ===> (Blank or pattern for member list)
Volume serial ===> (If dataset is not cataloged)
Specify Record Layout and XREF Information:
Record layout usage ===> S (S = Single; X = XREF; N = None)
Record layout dataset ===> 'USER.PROJ.COPYBOOK' ==> This option should be taken from REXX
Member name ===> CPYBOOK ==> This option should be taken from REXX
XREF dataset name ===>
Member name ===> (Blank or pattern for member list)
Specify Selection Criteria Information: (E = Existing; T = Temporary;
Selection criteria usage ===> N M = Modify; Q = Quick; N = None)
Selection dataset name ===>
Member name ===> (Blank or pattern for member list)
COMMAND ===>
Browse Mode ===> F (F=Fmt; C=Char; V=Vfmt; U=Unfmt)
Specify Browse Information:
Dataset name or HFS path ===> 'USER.PROJ.INPUT'
Member name ===> (Blank or pattern for member list)
Volume serial ===> (If dataset is not cataloged)
Specify Record Layout and XREF Information:
Record layout usage ===> S (S = Single; X = XREF; N = None)
Record layout dataset ===> 'USER.PROJ.COPYBOOK' ==> This option should be taken from REXX
Member name ===> CPYBOOK ==> This option should be taken from REXX
XREF dataset name ===>
Member name ===> (Blank or pattern for member list)
Specify Selection Criteria Information: (E = Existing; T = Temporary;
Selection criteria usage ===> N M = Modify; Q = Quick; N = None)
Selection dataset name ===>
Member name ===> (Blank or pattern for member list)
After that REXX should give enter command, so that file is opened, as below and REXX control should terminate.
File-AID - Browse - USER.PROJ.INPUT ------------------
COMMAND ===>
----+----1----+----2----+----3----+----4----+----5----+----6-
********************************* TOP OF DATA ***************
0001 CA 563
0002 OR 698
0003 AZ 658
0004 PA 887
******************************** BOTTOM OF DATA *************
COMMAND ===>
----+----1----+----2----+----3----+----4----+----5----+----6-
********************************* TOP OF DATA ***************
0001 CA 563
0002 OR 698
0003 AZ 658
0004 PA 887
******************************** BOTTOM OF DATA *************
Thanks in advance.