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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help on DISPLAY command in UNIX

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Our company has switched from Digital VMS operating system to UNIX and the REVERSE command with DISPLAY does not work in UNIX as it did in VMS Cobol.

i.e.
DISPLAY 'Enter name: ' WITH NO
INPUT ENTERED-NAME

Basically, I just want to do something to make the Enter name text to appear different from the input answer. Is this possible in UNIX?

 
What cobol are you using? I use Microfocus and you can:

DISPLAY "Enter name:" AT COL 1 WITH REVERSE-VIDEO.
ACCEPT ENTERED-NAME AT COL 15.

or you could use a SCREEN-SECTION.

bill [sig][/sig]
 
It could be that your terminfo is not correct, does text in other programs (or man) appear in reverse. [sig][/sig]
 
Thank you to you both for your replies. I have determined that it is not the terminal. My VMS cobol program worked using it.

This is my simple program that won't work in UNIX:

IDENTIFICATION DIVISION.
PROGRAM-ID. REVERSETEST.
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
MAINLINE.
DISPLAY 'HELLO' COLUMN 1 LINE 5
WITH REVERSE-VIDEO.
STOP RUN.

Weird, eh.

Butler: how do I find out what version of Cobol I'm using? Is there a simple command, or do I just ask my boss? :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top