Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SPECIAL-NAMES switches. Set up and debugging

Status
Not open for further replies.

h11tsr

Programmer
Sep 1, 2004
3
GB
I am amending a program that declares some switches in the SPECIAL-NAMES section.

CONFIGURATION SECTION.
SPECIAL-NAMES.
SWITCH 1 IS FAX-ADDRESS
ON IS x
OFF IS y
SWITCH 2 IS FAX-SWITCH
ON IS FAX-ON
OFF IS FAX-OFF

The switches are used within the program, but not set and hence must be set outside the program as some kind of global logical.

I am currentlt developing on a VAX/VMS and have two questions:

1. Where would these switches be set?
2. How can I view/manipulate these within a debug session

Thanks in advance.

 
running on VAX and using VAX COBOL V5.3

I have found the logical associated to this switch. It is assigned at login and reassigning will resolve, thereby satisfying the IF condition.

I also decided to write a program to make the call to my sub-routine, thereby working around the problem.

Still not sure how this all works though - External logical, etc, but there are no system calls to translate the logical??? So if anyone can shed some light ....

Regards,
 
Implementing switches are vendor dependent!
This should have been described in your vendor documentation.

The following might be an alternative:
(also vendor dependent but to my knowledge more commonly used)

Instead of using switches you may consider passing switches as parameters.
(or whatever you want to call it; parameter list, directives, or like phrases...)

For this the following information might be helpfull:


Regards, Wim Ahlers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top