home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
QCMCFG.ZIP
/
QCMCFG.CMD
Wrap
OS/2 REXX Batch file
|
1992-08-12
|
40KB
|
1,329 lines
/**********************************************************************/
/* This REXX Program uses the OS/2 Extended Services Communications */
/* Manager Programmable Configuration Feature to list (in Read Only */
/* Mode) many(most?) of the configured features of a <selected> */
/* .CFG file. */
/* The user will be prompted to specify whether he wants to see */
/* the report on the screen as it is produced. */
/* In any case, a report file xxxxxxxx.$RP (where xxxxxxxx is the */
/* name of the .CFG file selected) will be produced in the C:\CMLIB */
/* directory. At completion, the OS/2 System Editor will be invoked */
/* to "edit" this xxxxxxxx.$RP file. */
/**********************************************************************/
/* This program was written and released to the public domain by: */
/* */
/* Robert H. Stratton */
/* 167 Woodfield Rd., SW., */
/* CALGARY, Alberta, Canada. */
/* T2W 5K5 */
/* (403) 251-5591(h) (403) 233-3132(o) */
/* CIS:70754,2753 */
/* */
/* Permission is granted to distribute freely. I ask that this */
/* header remain with the file and that anyone who improves/corrects */
/* the program document (and take credit for) the changes and puts */
/* it back on CIS for everyones benefit. */
/* */
/**********************************************************************/
Trace N
"@ECHO OFF"
YN_ans = ""
Do while YN_ans \= "Y" & YN_ans \= "N"
Say "Do you want to see the report on your screen as it is produced? (Y/N)"
Pull YN_ans
YN_ans = translate(substr(strip(YN_ans),1,1))
End
If YN_ans = "Y" then Disp_Report = 1;
Else Disp_Report = 0
"C:"
"CD\CMLIB"
rc = Job('BEGIN',"QCMCFG")
/* Get list of .CFG files */
rc = file(list,'C:\CMLIB\*.CFG','CFGFILES.')
If Symbol('CFGFILES.0') = 'VAR' then do
"CLS"
Say ""
Say "Configuration files available are:"
Say ""
Do until datatype(the_ans) = "NUM" & the_ans \> j
Do i = 0 by 1 while Symbol('CFGFILES.'i) = 'VAR'
Say i+1 || ")" CFGFILES.i
End
j = i
Say ""
Say "Please select one of the files listed above"
Pull the_ans
End
j = the_ans - 1
Parse var CFGFILES.j CFG_File '.' .
End
Report_File = strip(CFG_File) || ".$RP"
If stream(Report_File,'C','QUERY EXISTS') \= "" then "ERASE" Report_File
"CLS"
Msg = Centre("Configuration Report for" CFGFILES.j,80)
Call Write_Out
Msg = Copies("*",77)
Call Write_Out
Msg = Copies(" ",77)
Call Write_Out
If file('OPEN',CFG_File,'RO') = 0 then do
Call Workstation_Configuration
Call 3270_DFT
Call 3270_SNA
Call 5250_SNA
Call SNA_Connection
SNA_DLC_Type = "SDLC"
Call SNA_DLC
SNA_DLC_Type = "LDLC"
Call SNA_DLC
SNA_DLC_Type = "TDLC"
Call SNA_DLC
SNA_DLC_Type = "XDLC"
Call SNA_DLC
Call LAN_IEEE8022
Call LAN_NETBIOS
Call PR_LUA
Call SRPI_SERVER
End
/********************************************************************/
/** Done: Report file xxxxxxxx.$RP created **/
/** Terminate job, then edit the report file **/
/********************************************************************/
rc = Job(END,"QCMCFG")
"CLS"
x = stream(Report_File,"C","CLOSE")
"E" report_file
"CD\"
"CLS"
Say ""
Say "QCMCFG Ended"
Say "Report file C:\CMLIB\" || strip(Report_File) "created."
Exit
/********************************************************************/
/** **/
/** Called main routines **/
/** **/
/********************************************************************/
Workstation_Configuration:
Msg = "[ Workstation Configuration ]"
Call Write_Out
Mnemonic = "COMMENT"
Msg_Text = "Comment"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "MACHINE_TYPE"
Msg_Text = "Machine type"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "MODEL_NUM"
Msg_Text = "Model Number"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "PLANT_MFG"
Msg_Text = "Plant of Manufacture"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "SERIAL_NUM"
Msg_Text = "Serial number"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "TRANS_TABLE"
Msg_Text = "Translation table file name"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "LOG_FNAME"
Msg_Text = "Error log file name"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "LOG_SIZE"
Msg_Text = "Error log file size"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "LOG_OVFLOW"
Msg_Text = "Error log overflow option"
Call Get_Wkstn
If MSG_Val = 1 then Msg_Val = "Wrap";
Else Msg_Val = "Extend"
Call Write_Out2
Mnemonic = "MEDIA_NAME"
Msg_Text = "Message log file name"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "MEDIA_SIZE"
Msg_Text = "Message log file size"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "MEDIA_OVFLOW"
Msg_Text = "Message log overflow option"
Call Get_Wkstn
If MSG_Val = 1 then Msg_Val = "Wrap"
Else Msg_Val = "Extend"
Call Write_Out2
Mnemonic = "DISP_MSG_POPUP"
Msg_Text = "Display Message Popup"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "QUICK_START"
Msg_Text = "Enable Autostart Options"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "START_3270_DFT"
Msg_Text = "Autostart 3270 DFT terminal emulation"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "START_ALL_DFT_SESS"
Msg_Text = "Autostart all 3270 DFT sessions"
Call Get_Wkstn
Call Write_Out2
Do k = 1 to 5
Mnemonic = "START_DFT_SESS_" || k
Msg_Text = "Autostart 3270 DFT session" k
Call Get_Wkstn
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2
End
Mnemonic = "START_3270_APPC"
Msg_Text = "Autostart 3270 SNA terminal emulation"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "START_ALL_NDFT_SESS"
Msg_Text = "Autostart all 3270 SNA sessions"
Call Get_Wkstn
Call Write_Out2
Do k = 1 to 5
Mnemonic = "START_NDFT_SESS_" || k
Msg_Text = "Autostart 3270 SNA session" k
Call Get_Wkstn
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2
End
Mnemonic = "START_5250_WSF"
Msg_Text = "Autostart 5250 Workstation Feature"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "START_ALL_5250_SESS"
Msg_Text = "Autostart all 5250 sessions"
Call Get_Wkstn
Call Write_Out2
Do k = 1 to 5
Mnemonic = "START_5250_SESS_" || k
Msg_Text = "Autostart 5250 session" k
Call Get_Wkstn
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2
End
Mnemonic = "1ST_SCREEN_SESS"
Msg_Text = "Screen to display first"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "START_ASYNC_TRM"
Msg_Text = "Autostart ASCII Terminal Emulation"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "LOAD_SERVICES"
Msg_Text = "Load all configured services"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "LOAD_SNA_APPC"
Msg_Text = "Load SNA/APPC services"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "LOAD_SRPI"
Msg_Text = "Load SRPI services"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "LOAD_X25_API"
Msg_Text = "Load X.25 services"
Call Get_Wkstn
Call Write_Out2
Mnemonic = "LOAD_ACDI"
Msg_Text = "Load ACDI services"
Call Get_Wkstn
Call Write_Out2
Return
/********************************************************************/
/* Check whether there are any 3270 DFT Sessions defined */
3270_DFT:
rc = 3270DFT(LIST,SESSION,"DFTSESS.")
If Symbol("DFTSESS." || 0 ) = "VAR" then do
Term_Type = "DFT"
do i = 0 by 1 while Symbol("DFTSESS." || i ) = "VAR"
Session_ID = DFTSESS.i
Msg = " "
Call Write_Out
Msg = "[ 3270 DFT Session" Session_ID "Configuration ]"
Call Write_Out
Call Term_3270
End
End
Return
/********************************************************************/
/* Check whether there are any 3270 SNA Sessions defined */
3270_SNA:
rc = 3270SNA(LIST,SESSION,"SNASESS.")
If Symbol("SNASESS." || 0 ) = "VAR" then do
Term_Type = "SNA"
Msg = " "
Call Write_Out
Msg = "[ 3270 SNA Configuration ]"
Call Write_Out
do i = 0 by 1 while Symbol("SNASESS." || i ) = "VAR"
Session_ID = SNASESS.i
Msg = " "
Call Write_Out
Msg = "[ 3270 SNA Session" Session_ID "Configuration ]"
Call Write_Out
Call Term_3270
End
End
Return
/********************************************************************/
/* Check whether there are any 5250 terminal Sessions defined */
5250_SNA:
rc = 5250(LIST,SESSION,"W5250SESS.")
If Symbol("W5250SESS." || 0 ) = "VAR" then do
Msg = " "
Call Write_Out
Msg = "[ 5250 Configuration ]"
Call Write_Out
/************************/
Mnemonic = "SESS_LU_ALIAS"
Msg_Text = "APPN LU alias"
Call Get_Sess_5250
Call Write_Out2
Do i = 1 to 5
Mnemonic = "SESS" || i || "_PROF_NAME"
Msg_Text = "5250 session" i "wrkstn feature prof name"
Call Get_Sess_5250
Call Write_Out2
Mnemonic = "SESS" || i || "_PLU_ALIAS"
Msg_Text = "APPN session" i "partner LU alias"
Call Get_Sess_5250
Call Write_Out2
Mnemonic = "SESS" || i || "_MODE_NAME"
Msg_Text = "APPN session" i "mode name"
Call Get_Sess_5250
Call Write_Out2
Mnemonic = "SESS" || i || "_SHORT_ID"
Msg_Text = "Session" i "short ID"
Call Get_Sess_5250
Call Write_Out2
End
/************************/
rc = 5250(LIST,TERM,"W5250TERM.")
If Symbol("W5250TERM." || 0 ) = "VAR" then do
do i = 0 by 1 while Symbol("W5250TERM." || i ) = "VAR"
Session_ID = W5250TERM.i
Msg = "[ 5250 Terminal" Session_ID "Configuration ]"
Call Write_Out
Call Term_5250
End
End
End
/************************/
/* Check whether there are any 5250 Printers defined */
rc = 5250(LIST,PRT,"W5250SESS.")
If Symbol("W5250SESS." || 0 ) = "VAR" then do
Msg = " "
Call Write_Out
do i = 0 by 1 while Symbol("W5250SESS." || i ) = "VAR"
Session_ID = W5250SESS.i
Msg = "[ 5250 Printer" Session_ID "Configuration ]"
Call Write_Out
Call Prnt_5250
End
End
Return
/********************************************************************/
/* Get 3270 SNA connection type */
SNA_Connection:
Msg = "[ 3270 SNA Connection Configuration ]"
Call Write_Out
Mnemonic = "DLC_TYPE"
Msg_Text = "Connection Type"
Drop Msg_Val
Call Get_SNA_Connect
Select
When Msg_Val = 1 then Msg_Val = "SDLC"
When Msg_Val = 2 then Msg_Val = "IBM Token Ring Network"
When Msg_Val = 3 then Msg_Val = "X.25"
When Msg_Val = 4 then Msg_Val = "IBM PC Network through a gateway"
When Msg_Val = 5 then Msg_Val = "ETHERAND Network through a gateway"
Otherwise nop
End
Call Write_Out2
Mnemonic = "ADAPT_NUM"
Msg_Text = "Adapter number"
Call Get_SNA_Connect
Call Write_Out2
Mnemonic = "DEST_ADDR"
Msg_Text = "Destination address"
Call Get_SNA_Connect
Call Write_Out2
Mnemonic = "X25_DIR"
Msg_Text = "Directory entry name"
Call Get_SNA_Connect
Call Write_Out2
Return
/********************************************************************/
/* SNA DLC */
SNA_DLC:
rc = SNA(LIST,SNA_DLC_Type,"SNADLC.")
If Symbol("SNADLC." || 0 ) = "VAR" then do
Msg = "[ SNA" SNA_DLC_Type "Configuration ]"
Call Write_Out
do i = 0 by 1 while Symbol("SNADLC." || i ) = "VAR"
Session_ID = SNADLC.i
Msg = "[ SNA" SNA_DLC_Type Session_ID "Configuration ]"
Call Write_Out
Call SNA_DLCs
End
End
Return
/********************************************************************/
SNA_DLCs:
Mnemonic = "COMMENT"
Msg_Text = "Comment"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
If SNA_DLC_Type \= "TDLC" then do
Mnemonic = "ADAPT_TYPE"
Msg_Text = "Adapter Type"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then do
If Msg_Val = 1 then Msg_Val = "IBM PC Network"
If Msg_Val = 2 then Msg_Val = "IBM Token-Ring Network"
If Msg_Val = 3 then Msg_Val = "ETHERAND Network"
Call Write_Out2
End
Else Drop Msg_Val
End
Mnemonic = "LOAD"
Msg_Text = "Load DLC"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "FREE_CONNECTS"
Msg_Text = "Free unused connections"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "MAX_LINK_STA"
Msg_Text = "Maximum Link stations"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "PER_N_CALLS"
Msg_Text = "Percent of incoming calls"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "FREE_LINK"
Msg_Text = "Free unused link"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "PER_CONGEST"
Msg_Text = "Congestion tolerance"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "MAX_RU_SIZE"
Msg_Text = "Maximum RU Size"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "CONTROL_ADDR"
Msg_Text = "Controller address"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
If SNA_DLC_Type = "TDLC" then do
Mnemonic = "ADAPT_TYPE"
Msg_Text = "Adapter Type"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then do
If Msg_Val = 1 then Msg_Val = "IBM System/36 38 workstation"
If Msg_Val = 2 then Msg_Val = "Enhanced 5250"
Call Write_Out2
End
Else Drop Msg_Val
End
Mnemonic = "SEND_COUNT"
Msg_Text = "Send window count"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "REC_COUNT"
Msg_Text = "Receive window count"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "CASM_LAN_ID"
Msg_Text = "Commns and systems management LAN ID"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "LINE_TYPE"
Msg_Text = "Line type"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then do
If Msg_Val = 1 then Msg_Val = "Switched"
If Msg_Val = 2 then Msg_Val = "Non-switched"
Call Write_Out2
End
Else Drop Msg_Val
Mnemonic = "LINK_STA_ROLE"
Msg_Text = "Link station role"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then do
If Msg_Val = 1 then Msg_Val = "Secondary"
If Msg_Val = 2 then Msg_Val = "Primary"
If Msg_Val = 3 then Msg_Val = "Negotiable"
Call Write_Out2
End
Else Drop Msg_Val
Mnemonic = "LINE_MODE"
Msg_Text = "Line mode"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then do
If Msg_Val = 1 then Msg_Val = "Line turnaround required"
If Msg_Val = 2 then Msg_Val = "Constant request to send"
Call Write_Out2
End
Else Drop Msg_Val
Mnemonic = "NRZI"
Msg_Text = "Non-return-to-zero (inverted)"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "MODEM_RATE"
Msg_Text = "Modem Rate"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then do
If Msg_Val = 1 then Msg_Val = "Full speed"
If Msg_Val = 2 then Msg_Val = "Half speed"
Call Write_Out2
End
Else Drop Msg_Val
Mnemonic = "DSR_TIMEOUT"
Msg_Text = "Data set ready timeout"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "LOC_SAT_ADDR"
Msg_Text = "Local station address"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "XID_REPOLL"
Msg_Text = "Exchange ID (XID) repoll count"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "NXID_REPOLL"
Msg_Text = "Non-XID repoll count"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "SEND_ALERT"
Msg_Text = "Send alert for beaconing"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "5250_IO_PORT"
Msg_Text = "I/O Port"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "5250_INT_LEVEL"
Msg_Text = "Hardware interrupt level"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "5250_RAM_LOCA"
Msg_Text = "Shared RAM location"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then do
If Msg_Val = 1 then Msg_Val = "Use first available address"
If Msg_Val = 2 then Msg_Val = "CC000"
If Msg_Val = 3 then Msg_Val = "DC000"
Call Write_Out2;
End
Else Drop Msg_Val
If SNA_DLC_Type = "XDLC" then do
Mnemonic = "IN_CONNECTS"
Msg_Text = "Number of incoming connections"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "CALL_ADDR_REQ"
Msg_Text = "Insert calling address in call request packet"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "NEGOT_PACK_SIZE"
Msg_Text = "Negotiate packet size"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "NEGOT_WIND_SIZE"
Msg_Text = "Negotiate window size"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "DEF_LINK_STA_ROLE"
Msg_Text = "Default link station role"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then do
If Msg_Val = 1 then Msg_Val = "Secondary"
If Msg_Val = 2 then Msg_Val = "Primary"
If Msg_Val = 3 then Msg_Val = "Negotiable"
Call Write_Out2;
End
Else Drop Msg_Val
Mnemonic = "DEF_RETRY_COUNT"
Msg_Text = "Default retry count"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "DEF_TIMEOUT"
Msg_Text = "Default timeout"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
Mnemonic = "REVERSE_CHARGES"
Msg_Text = "Accept reverse charges"
Call Get_SNA_DLC
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2;
Else Drop Msg_Val
End
Return
/********************************************************************/
/* Process LAN IEEE 802.2 */
LAN_IEEE8022:
rc = LAN(LIST,IEEE8022,"XIEEE8022.")
If Symbol("XIEEE8022." || 0 ) = "VAR" then do
do i = 0 by 1 while Symbol("XIEEE8022." || i ) = "VAR"
Session_ID = XIEEE8022.i
Msg = "[ LAN IEEE 802.2" Session_ID "Configuration ]"
Call Write_Out
Call LAN_IEEE_8022
End
End
Return
/********************************************************************/
/* Process LAN Netbios */
LAN_NETBIOS:
rc = LAN(LIST,NETB,"XNETBIOS.")
If Symbol("XNETBIOS." || 0 ) = "VAR" then do
do i = 0 by 1 while Symbol("XNETBIOS." || i ) = "VAR"
Session_ID = XNETBIOS.i
Msg = "[ LAN Netbios" Session_ID "Configuration ]"
Call Write_Out
Call LAN_NET_BIOS
End
End
Return
/********************************************************************/
/* Process SRPI */
SRPI_SERVER:
Mnemonic = "NOTIFY_MODE"
Msg_Text = "Change notification mode for 3270 sessions"
rc = SRPI(GET,SVRBASE,Msg_Val EQ Mnemonic)
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then do
Msg = " "
Call Write_Out
Msg = "[ SRPI Server Configuration ]"
Call Write_Out
Call Write_Out2
rc = SRPI(LIST,SERVER,"SRPISRVR.")
If Symbol("SRPISRVR." || 0 ) = "VAR" then do
do i = 0 by 1 while Symbol("SRPISRVR." || i ) = "VAR"
Session_ID = SRPISRVR.i
Msg = "[ SRPI Server" Session_ID "Configuration ]"
Call Write_Out
Call SRPISERVER
End
End
End
Return
/********************************************************************/
/* Process LUA */
PR_LUA:
rc = LUA(LIST,LUA,"LUAS.")
If Symbol("LUAS." || 0 ) = "VAR" then do
do i = 0 by 1 while Symbol("LUAS." || i ) = "VAR"
Session_ID = LUAS.i
Msg = "[ LUA LUA" Session_ID "Configuration ]"
Call Write_Out
Call LUA_LUA
End
End
Return
/********************************************************************/
/** **/
/** Called sub routines **/
/** **/
/********************************************************************/
Get_Wkstn:
rc = Machine(GET,WKST,Msg_Val EQ Mnemonic)
Return Msg_Val
/*******************************************/
Term_3270:
Mnemonic = "SESN_ID"
Msg_Text = "Session ID/LU Name"
Call Get_Term_3270
Call Write_Out2
Mnemonic = "COMMENT"
Msg_Text = "Comment"
Call Get_Term_3270
Call Write_Out2
Mnemonic = "TYPE"
Msg_Text = "Profile Type"
Call Get_Term_3270
Term_Type = Msg_Val
If Msg_Val = 1 then do
Msg_Val = "Terminal"
End
Else do
Msg_Val = "Printer"
End
Call Write_Out2
Mnemonic = "SHORT_ID"
Msg_Text = "Short Session ID"
Call Get_Term_3270
Call Write_Out2
If Term_Type = "SNA" then do
Mnemonic = "NAU"
Msg_Text = "LU local address (NAU address)"
Call Get_Term_3270
Call Write_Out2
End
If Term_Type = 1 then do
Mnemonic = "AT_KEYBOARD"
Msg_Text = "AT Keyboard profile name"
Call Get_Term_3270
Call Write_Out2
Mnemonic = "ENH_KEYBOARD"
Msg_Text = "Enhanced Keyboard profile name"
Call Get_Term_3270
Call Write_Out2
Mnemonic = "SPACE_SIZE"
Msg_Text = "Presentation space size"
Call Get_Term_3270
Select
When Msg_Val = 1 then Msg_Val = "25X80 (3278/79 mod 2)"
When Msg_Val = 2 then Msg_Val = "33X80 (3278/79 mod 3)"
When Msg_Val = 3 then Msg_Val = "44X80 (3278/79 mod 4)"
When Msg_Val = 4 then Msg_Val = "28X132 (3278/79 mod 5)"
Otherwise Msg_Val = "Other"
End
Call Write_Out2
Mnemonic = "PSS_ROW"
Msg_Text = "Rows of Presentation space size"
Call Get_Term_3270
Call Write_Out2
Mnemonic = "PSS_COL"
Msg_Text = "Columns of Presentation space size"
Call Get_Term_3270
Call Write_Out2
Mnemonic = "XFER_SIZE"
Msg_Text = "Data transfer buffer size override"
Call Get_Term_3270
Call Write_Out2
Mnemonic = "UNSUP_CC"
Msg_Text = "Unsupported control codes"
Call Get_Term_3270
If MSG_VAL = 1 then Msg_Val = "Display hyphens"
If MSG_VAL = 2 then Msg_Val = "Error codes"
Call Write_Out2
Mnemonic = "APS_PRINT"
Msg_Text = "Activate presentation space print"
Call Get_Term_3270
Call Write_Out2
Mnemonic = "DBCS_LANG"
Msg_Text = "Language selection"
Call Get_Term_3270
If Msg_Val = 1 then Msg_Val = "English"
If Msg_Val = 2 then Msg_Val = "Katakana"
Call Write_Out2
Msg = "[ 3270 Session" Session_ID "Colour attributes ]"
Call Write_Out
/* Foreground colours */
Mnemonic = "F_NORMAL_UNPRO"
Msg_Text = "Normal, unprotected foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_INTENSE_UNPRO"
Msg_Text = "Intensified, unprotected foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_NORMAL_PRO"
Msg_Text = "Normal, protected foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_INTENSE_PRO"
Msg_Text = "Intensified, protected foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_BLUE"
Msg_Text = "Blue foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_GREEN"
Msg_Text = "Green foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_PINK"
Msg_Text = "Pink foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_RED"
Msg_Text = "Red foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_TURQUOISE"
Msg_Text = "Turquoise foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_WHITE"
Msg_Text = "White foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_YELLOW"
Msg_Text = "Yellow foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_BLINK"
Msg_Text = "Blink foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_DEFLT_HILITE"
Msg_Text = "Default highlight of foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_DEFLT_NOHILT"
Msg_Text = "Default no highlight of foreground"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "F_OIA"
Msg_Text = "Operator information area of foreground"
Call Get_Term_3270_Colour
Call Write_Out2
/* Background colours */
Mnemonic = "B_NORMAL_UNPRO"
Msg_Text = "Normal, unprotected background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_INTENSE_UNPRO"
Msg_Text = "Intensified, unprotected background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_NORMAL_PRO"
Msg_Text = "Normal, protected background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_INTENSE_PRO"
Msg_Text = "Intensified, protected background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_BLUE"
Msg_Text = "Blue background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_GREEN"
Msg_Text = "Green background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_PINK"
Msg_Text = "Pink background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_RED"
Msg_Text = "Red background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_TURQUOISE"
Msg_Text = "Turquoise background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_WHITE"
Msg_Text = "White background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_YELLOW"
Msg_Text = "Yellow background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_BLINK"
Msg_Text = "Blink background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_DEFLT_HILITE"
Msg_Text = "Default highlight of background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_DEFLT_NOHILT"
Msg_Text = "Default no highlight of background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "B_OIA"
Msg_Text = "Operator information area of background"
Call Get_Term_3270_Colour
Call Write_Out2
Mnemonic = "HOST_ALARM"
Msg_Text = "Host alarm"
Call Get_Term_3270
If Msg_Val = 1 then Msg_Val = "On"
If Msg_Val = 2 then Msg_Val = "Off"
Call Write_Out2
Mnemonic = "PF_ALARM"
Msg_Text = "Protected field alarm"
Call Get_Term_3270
If Msg_Val = 1 then Msg_Val = "On"
If Msg_Val = 2 then Msg_Val = "Off"
Call Write_Out2
Mnemonic = "SU_ALARM"
Msg_Text = "Screen update alarm"
Call Get_Term_3270
If Msg_Val = 1 then Msg_Val = "On"
If Msg_Val = 2 then Msg_Val = "Off"
Call Write_Out2
End
Else do
Mnemonic = "PRT_BUFF"
Msg_Text = "Print buffer size"
Call Get_Term_3270
Call Write_Out2
End
Return
/*******************************************/
Get_Term_3270:
rc = 3270SNA(GET,SESSION EQ Session_ID,Msg_Val EQ Mnemonic)
Return
/*******************************************/
Get_Term_3270_Colour:
rc = 3270SNA(GET,SESSION EQ Session_ID,Colour_Code EQ Mnemonic)
Select
When Colour_Code = 1 then Msg_Val = "Black"
When Colour_Code = 2 then Msg_Val = "Blue"
When Colour_Code = 3 then Msg_Val = "Green"
When Colour_Code = 4 then Msg_Val = "Cyan"
When Colour_Code = 5 then Msg_Val = "Red"
When Colour_Code = 6 then Msg_Val = "Magenta"
When Colour_Code = 7 then Msg_Val = "Brown"
When Colour_Code = 8 then Msg_Val = "Light Grey"
When Colour_Code = 9 then Msg_Val = "Grey"
When Colour_Code = 10 then Msg_Val = "Light Blue"
When Colour_Code = 11 then Msg_Val = "Light Green"
When Colour_Code = 12 then Msg_Val = "Light Cyan"
When Colour_Code = 13 then Msg_Val = "Light Red"
When Colour_Code = 14 then Msg_Val = "Light Magenta"
When Colour_Code = 15 then Msg_Val = "Yellow"
When Colour_Code = 16 then Msg_Val = "White"
Otherwise Msg_Val = "Unknown"
End
Drop Colour_Code
Return
/*******************************************/
Get_SNA_Connect:
rc = 3270SNA(GET,CONNECT,Msg_Val EQ Mnemonic)
Return
/*******************************************/
Term_5250:
Mnemonic = "COMMENT"
Msg_Text = "Comment"
Call Get_Term_5250
Call Write_Out2
Mnemonic = "AT_KB_NAME"
Msg_Text = "AT Keyboard profile name"
Call Get_Term_5250
Call Write_Out2
Mnemonic = "ENH_KB_NAME"
Msg_Text = "Enhanced Keyboard profile name"
Call Get_Term_5250
Call Write_Out2
Mnemonic = "BUFF_KEYS"
Msg_Text = "Buffer Keystrokes"
Call Get_Term_5250
Call Write_Out2
Mnemonic = "HOST_TYPE"
Msg_Text = "Host Type"
Call Get_Term_5250
If Msg_Val = 1 then do
Msg_Val = "System 36"
Call Write_Out2
Mnemonic = "SYS36_WS_ID"
Msg_Text = "System/36 Workstation ID"
Call Get_Term_5250
Call Write_Out2
End
If Msg_Val = 2 then do
Msg_Val = "AS/400"
Call Write_Out2
Mnemonic = "AS400_WS_ID"
Msg_Text = "AS/400 Workstation ID"
Call Get_Term_5250
Call Write_Out2
End
Mnemonic = "DBCS_USER_CHAR"
Msg_Text = "Use user defined characters"
Call Get_Term_5250
If Msg_Val = 1 then Msg_Val = "PS/55"
If Msg_Val = 2 then Msg_Val = "AS/400"
Call Write_Out2
Mnemonic = "DBCS_LANG_SEL"
Msg_Text = "Language selection"
Call Get_Term_5250
If Msg_Val = 1 then Msg_Val = "English"
If Msg_Val = 2 then Msg_Val = "Katakana"
Call Write_Out2
Mnemonic = "AUTO_SIGNON"
Msg_Text = "Auto sign on"
Call Get_Term_5250
Call Write_Out2
Mnemonic = "SEP_FOR_BLNK"
Msg_Text = "Display blanks in column separator field"
Call Get_Term_5250
Call Write_Out2
Mnemonic = "COL_SEP"
Msg_Text = "Column separator"
Call Get_Term_5250
Call Write_Out2
Return
/*******************************************/
Get_Sess_5250:
rc = 5250(GET,SESSION,Msg_Val EQ Mnemonic)
Return
/*******************************************/
Get_Term_5250:
rc = 5250(GET,TERM EQ Session_ID,Msg_Val EQ Mnemonic)
Return
/*******************************************/
Prnt_5250:
Mnemonic = "COMMENT"
Msg_Text = "Comment"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "AT_KB_NAME"
Msg_Text = "AT Keyboard profile name"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "ENH_KB_NAME"
Msg_Text = "Enhanced Keyboard profile name"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "PRINT_TYPE"
Msg_Text = "Printer type 1"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "PFT_FILE_NAME8"
Msg_Text = "Printer function table name"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "HOST_TYPE"
Msg_Text = "Host type"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "SYS36_WS_ID"
Msg_Text = "System/36 workstation ID"
Call Get_Prt_5250
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2
Mnemonic = "AS400_WS_ID"
Msg_Text = "AS/400 workstation ID"
Call Get_Prt_5250
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Call Write_Out2
Mnemonic = "NET_CONV"
Msg_Text = "Printer type 2"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "EBCDIC_PAGE"
Msg_Text = "Host code page"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "ASCII_PAGE"
Msg_Text = "PC code page"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "DBCS_USER_CHAR"
Msg_Text = "Use user defined characters"
Call Get_Prt_5250
If Msg_Val = 1 then Msg_Val = "PS/55"
If Msg_Val = 2 then Msg_Val = "AS/400"
Call Write_Out2
Mnemonic = "SER_PAR"
Msg_Text = "Serial or Parallel printer"
Call Get_Prt_5250
If Msg_Val = 1 then Msg_Val = "Serial"
If Msg_Val = 2 then Msg_Val = "Parallel"
Call Write_Out2
Mnemonic = "SER_PORT"
Msg_Text = "Communication port"
Call Get_Prt_5250
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Msg_Val = "COM" || strip(Msg_Val)
Call Write_Out2
Mnemonic = "BPS"
Msg_Text = "Bits per second"
Call Get_Prt_5250
Select
When Msg_Val = 1 then Msg_Val = 110
When Msg_Val = 2 then Msg_Val = 150
When Msg_Val = 3 then Msg_Val = 300
When Msg_Val = 4 then Msg_Val = 600
When Msg_Val = 5 then Msg_Val = 1200
When Msg_Val = 6 then Msg_Val = 2400
When Msg_Val = 7 then Msg_Val = 4800
When Msg_Val = 8 then Msg_Val = 9600
Otherwise nop
End
Call Write_Out2
Mnemonic = "DATA_BITS"
Msg_Text = "Data bits"
Call Get_Prt_5250
Select
When Msg_Val = 1 then Msg_Val = 7
When Msg_Val = 2 then Msg_Val = 8
Otherwise nop
End
Call Write_Out2
Mnemonic = "STOP_BITS"
Msg_Text = "Stop bits"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "PARITY"
Msg_Text = "Parity"
Call Get_Prt_5250
Select
When Msg_Val = 1 then Msg_Val = "None"
When Msg_Val = 2 then Msg_Val = "Odd"
When Msg_Val = 3 then Msg_Val = "Even"
Otherwise nop
End
Call Write_Out2
Mnemonic = "PAR_PORT"
Msg_Text = "Parallel printer port"
Call Get_Prt_5250
If Msg_Val \= "" & Msg_Val \= "MSG_VAL" then Msg_Val = "LPT" || strip(Msg_Val)
Call Write_Out2
Mnemonic = "SUBCON_NUM"
Msg_Text = "Subconsole session number"
Call Get_Prt_5250
If Msg_Val = 1 then Msg_Val = "System console";
Else do
If Datatype(Msg_Val) = "NUM" then Msg_Val = Msg_Val = 1
End
Call Write_Out2
Mnemonic = "SEP_PAGES"
Msg_Text = "Separator pages"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "NAME"
Msg_Text = "Printer name"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "MSG_QUEUE"
Msg_Text = "Message queue"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "MSG_Q_LIB"
Msg_Text = "Message queue library"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "ALARM"
Msg_Text = "Printer alarm"
Call Get_Prt_5250
If Msg_Val = 1 then Msg_Val = "Enable"
If Msg_Val = 2 then Msg_Val = "Disable"
Call Write_Out2
Mnemonic = "CHAR_DENS"
Msg_Text = "Prompt for change character density"
Call Get_Prt_5250
If Msg_Val = 1 then Msg_Val = "Yes"
If Msg_Val = 2 then Msg_Val = "No"
Call Write_Out2
Mnemonic = "HAND_EQUIP"
Msg_Text = "Paper handling equipment"
Call Get_Prt_5250
If Msg_Val = 1 then Msg_Val = "Continuous forms"
If Msg_Val = 2 then Msg_Val = "Cut sheets"
Call Write_Out2
Mnemonic = "PAPER_WID"
Msg_Text = "Paper width"
Call Get_Prt_5250
If Msg_Val = 1 then Msg_Val = "8 inches"
If Msg_Val = 2 then Msg_Val = "13.2 inches"
Call Write_Out2
Mnemonic = "CPI"
Msg_Text = "Characters per inch"
Call Get_Prt_5250
If Msg_Val = 1 then Msg_Val = "10"
If Msg_Val = 2 then Msg_Val = "15"
Call Write_Out2
Mnemonic = "LPI"
Msg_Text = "Lines per inch"
Call Get_Prt_5250
If Msg_Val = 1 then Msg_Val = "6"
If Msg_Val = 2 then Msg_Val = "8"
Call Write_Out2
Mnemonic = "NUM_DRAWERS"
Msg_Text = "Number of sheet drawers"
Call Get_Prt_5250
Call Write_Out2
Mnemonic = "ENV_HOP"
Msg_Text = "Envelope hopper"
Call Get_Prt_5250
If Msg_Val = 1 then Msg_Val = "Yes"
If Msg_Val = 2 then Msg_Val = "No"
Call Write_Out2
Mnemonic = "FONT"
Msg_Text = "Font"
Call Get_Prt_5250
Select
When Msg_Val = 1 then Msg_Val = "Courier 10"
When Msg_Val = 2 then Msg_Val = "Rhetoric"
When Msg_Val = 3 then Msg_Val = "Prestige pica"
When Msg_Val = 4 then Msg_Val = "Artisan 10"
When Msg_Val = 5 then Msg_Val = "Pica"
When Msg_Val = 6 then Msg_Val = "Symbol scribe 12"
When Msg_Val = 7 then Msg_Val = "Scribe"
When Msg_Val = 8 then Msg_Val = "Courier 12"
When Msg_Val = 9 then Msg_Val = "Prestige elite"
When Msg_Val = 10 then Msg_Val = "Letter gothic"
When Msg_Val = 11 then Msg_Val = "Light italic"
When Msg_Val = 12 then Msg_Val = "Modern"
When Msg_Val = 13 then Msg_Val = "Boldface"
When Msg_Val = 14 then Msg_Val = "Essay"
When Msg_Val = 15 then Msg_Val = "Essay italic"
When Msg_Val = 16 then Msg_Val = "Prestige 15"
When Msg_Val = 17 then Msg_Val = "Gothic 15"
When Msg_Val = 18 then Msg_Val = "Courier 15"
When Msg_Val = 19 then Msg_Val = "Symbol diplomat scribe"
Otherwise Msg_Val = "Unknown" Msg_Val
End
Call Write_Out2
/*******************************************/
Get_Prt_5250:
rc = 5250(GET,PRT EQ Session_ID,Msg_Val EQ Mnemonic)
Return
/*******************************************/
LAN_IEEE_8022:
Mnemonic = "ETHERAND_TYPE"
Msg_Text = "ETHERAND Type"
Call Get_LAN_IEEE8022
Call Write_Out2
Mnemonic = "NETADDRESS"
Msg_Text = "Network Address"
Call Get_LAN_IEEE8022
Call Write_Out2
Mnemonic = "LINKS"
Msg_Text = "Maximum Link Addresses"
Call Get_LAN_IEEE8022
Call Write_Out2
Return
/*******************************************/
Get_LAN_IEEE8022:
rc = LAN(GET,IEEE8022 EQ Session_ID,Msg_Val EQ Mnemonic)
Return
/*******************************************/
LAN_NET_BIOS:
Mnemonic = "SESSIONS"
Msg_Text = "Maximum Sessions"
Call Get_LAN_NETBIOS
Call Write_Out2
Mnemonic = "NCBS"
Msg_Text = "Maximum commands"
Call Get_LAN_NETBIOS
Call Write_Out2
Mnemonic = "NAMES"
Msg_Text = "Maximum names"
Call Get_LAN_NETBIOS
Call Write_Out2
Mnemonic = "NETBIOSTIMEOUT"
Msg_Text = "Query timeout"
Call Get_LAN_NETBIOS
Call Write_Out2
Return
/*******************************************/
Get_LAN_NETBIOS:
rc = LAN(GET,NETB EQ Session_ID,Msg_Val EQ Mnemonic)
Return
/*******************************************/
Get_SNA_DLC:
rc = SNA(GET,SNA_DLC_Type EQ Session_ID,Msg_Val EQ Mnemonic)
Return
/*******************************************/
SRPISERVER:
Mnemonic = "COMMENT"
Msg_Text = "Comment"
Call Get_SRPI
Call Write_Out2
Mnemonic = "SERVER_NAME"
Msg_Text = "Server Name"
Call Get_SRPI
Call Write_Out2
Mnemonic = "SESN_ID"
Msg_Text = "3270 Session ID"
Call Get_SRPI
Call Write_Out2
Return
/*******************************************/
Get_SRPI:
rc = SRPI(GET,SERVER EQ Session_ID,Msg_Val EQ Mnemonic)
Return
/*******************************************/
LUA_LUA:
Mnemonic = "COMMENT"
Msg_Text = "Comment"
Call Get_LUA_LUA
Call Write_Out2
Mnemonic = "NAU"
Msg_Text = "Local address (NAU)"
Call Get_LUA_LUA
Call Write_Out2
Mnemonic = "DLC_TYPE"
Msg_Text = "Data Link Control type"
Call Get_LUA_LUA
Select
When Msg_Val = 1 then Msg_Val = "SDLC"
When Msg_Val = 2 then Msg_Val = "IBM Token Ring"
When Msg_Val = 3 then Msg_Val = "X.25"
When Msg_Val = 4 then Msg_Val = "IBM PC Network"
When Msg_Val = 5 then Msg_Val = "ETHERAND Network"
Otherwise Msg_Val = "Unknown"
End
Call Write_Out2
Mnemonic = "ADAPTER"
Msg_Text = "Adapter number"
Call Get_LUA_LUA
Call Write_Out2
Mnemonic = "X25_DIR"
Msg_Text = "Directory entry name"
Call Get_LUA_LUA
Call Write_Out2
Mnemonic = "DEST_ADDR"
Msg_Text = "Destination address"
Call Get_LUA_LUA
Call Write_Out2
Return
/*******************************************/
Get_LUA_LUA:
rc = LUA(GET,LUA EQ Session_ID,Msg_Val EQ Mnemonic)
Return
/*******************************************/
Write_Out:
If Disp_Report then do
Say Msg
Y = Lineout(Report_File,Msg)
End
Return
/*******************************************/
Write_Out2:
If Disp_Report then do
Say Right(Msg_Text,42) || ":" strip(Msg_Val)
Y = Lineout(Report_File,Right(Msg_Text,42) || ":" strip(Msg_Val))
End
Else do
Dot = charout(".")
End
Drop Msg_Val
Return