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!

ASSIGN TO PRINTER CLAUSE

Status
Not open for further replies.

Heather7129

Programmer
Nov 15, 2000
1
US
I am learning COBOL in college. This is my first course and the instructor says the ASSIGN TO PRINTER clause of the SELECT statement will send output to the printer. However, this will not work on my computer at home, but works just fine on the computer at school. Why is that?????

My system at home is running WIN98 2nd Edition. The compiler is MicroFocus. The text book gives some examples of other possibilities such as using:

ASSIGN TO PRN
ASSIGN TO LPT1
ASSIGN TO SYSLST
ASSIGN TO SYS$OUT

I have tried all of these....with and without ' marks around them. None of them work. I asked the professor at school and she has no idea why it doesn't work. Anybody have any ideas?????

Thanks. :)
 
The SELECT / ASSIGN is hardware specific and your textbook is generic. Try looking at the manual or help files that came with your compiler. A warning though, my PC compiler won't talk to the printer directly. You just assign to a file name and then print the file with a PRINT command when the program is finished executing. Betty Scherber
Brainbench MVP for COBOL II
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top