I am a relative newbie at SuSE and I apologize beforehand if this is not the correct place for this questions. I have been asked to assist in moving an ACUCobol (Runtime is GT 5.1) application from SCO Unix to SuSE version 8.0. I've been able to get the program working, but can not get any of the reports to print. I am able to print from the command line and can successfully pipe a file to the printer (cat .profile | lp -s -dprinter). The COBOL config file defines the printer as: LPT1 -P lp -s -dprinter1 When I attempt to print from inside the program, I get a File Error 30,32. I had a programmer write a simple program to print a file, and that to results in the same error. This leads me to the conclusion that something in SuSE is not setup correctly (ACUCorp tech support indicates that many others are running Cobol Apps under SuSE), even thought I can print successfully. Thanks in advance for any assistance. Stu
From your note it appears that you are calling on "printer1" from COBOL while the SuSE 8.0 printer is named "printer".
The error you are getting is correct. There is no "printer1". I suggest you correct the COBOL printer definition. Yours, /ceb\ -----Original Message----- From: Stu Cater [mailto:scater@mispros.com] Sent: Thursday, August 29, 2002 2:47 PM To: Suse-Programming Help Subject: [suse-programming-e] Printing Problem (Cobol App) I am a relative newbie at SuSE and I apologize beforehand if this is not the correct place for this questions. I have been asked to assist in moving an ACUCobol (Runtime is GT 5.1) application from SCO Unix to SuSE version 8.0. I've been able to get the program working, but can not get any of the reports to print. I am able to print from the command line and can successfully pipe a file to the printer (cat .profile | lp -s -dprinter). The COBOL config file defines the printer as: LPT1 -P lp -s -dprinter1 When I attempt to print from inside the program, I get a File Error 30,32. I had a programmer write a simple program to print a file, and that to results in the same error. This leads me to the conclusion that something in SuSE is not setup correctly (ACUCorp tech support indicates that many others are running Cobol Apps under SuSE), even thought I can print successfully. Thanks in advance for any assistance. Stu
That was a typo on my part -- the printer is indeed printer1 and the command line should have been: cat .profile |lp -s -dprinter1 Sorry about that. Thanks, Stu -----Original Message----- From: Charles Edward Brooks [mailto:Charles.Brooks@Swg.com] Sent: Thursday, August 29, 2002 2:15 PM To: scater@mispros.com; Suse-Programming Help Subject: RE: [suse-programming-e] Printing Problem (Cobol App)
From your note it appears that you are calling on "printer1" from COBOL while the SuSE 8.0 printer is named "printer".
The error you are getting is correct. There is no "printer1". I suggest you correct the COBOL printer definition. Yours, /ceb\ -----Original Message----- From: Stu Cater [mailto:scater@mispros.com] Sent: Thursday, August 29, 2002 2:47 PM To: Suse-Programming Help Subject: [suse-programming-e] Printing Problem (Cobol App) I am a relative newbie at SuSE and I apologize beforehand if this is not the correct place for this questions. I have been asked to assist in moving an ACUCobol (Runtime is GT 5.1) application from SCO Unix to SuSE version 8.0. I've been able to get the program working, but can not get any of the reports to print. I am able to print from the command line and can successfully pipe a file to the printer (cat .profile | lp -s -dprinter). The COBOL config file defines the printer as: LPT1 -P lp -s -dprinter1 When I attempt to print from inside the program, I get a File Error 30,32. I had a programmer write a simple program to print a file, and that to results in the same error. This leads me to the conclusion that something in SuSE is not setup correctly (ACUCorp tech support indicates that many others are running Cobol Apps under SuSE), even thought I can print successfully. Thanks in advance for any assistance. Stu
I suggest that you do a bit of debugging. LPT1 -P lp -s -dprinter1 I don't know what the -P is. If "cat .profile | lp -s -dprinter1" works, then the problem is more difficult. Why not try a few things. LPT1 -P /usr/bin/echo LPT1 I suspect what may be happening is that possibly the print stream is not being sent correctly to the COBOL LPT1 file. On 29 Aug 2002 at 14:41, Stu Cater wrote:
That was a typo on my part -- the printer is indeed printer1 and the command line should have been: cat .profile |lp -s -dprinter1
Sorry about that.
Thanks, Stu
-----Original Message----- From: Charles Edward Brooks [mailto:Charles.Brooks@Swg.com] Sent: Thursday, August 29, 2002 2:15 PM To: scater@mispros.com; Suse-Programming Help Subject: RE: [suse-programming-e] Printing Problem (Cobol App)
From your note it appears that you are calling on "printer1" from COBOL while the SuSE 8.0 printer is named "printer".
The error you are getting is correct. There is no "printer1".
I suggest you correct the COBOL printer definition.
Yours,
/ceb\
-----Original Message----- From: Stu Cater [mailto:scater@mispros.com] Sent: Thursday, August 29, 2002 2:47 PM To: Suse-Programming Help Subject: [suse-programming-e] Printing Problem (Cobol App)
I am a relative newbie at SuSE and I apologize beforehand if this is not the correct place for this questions. I have been asked to assist in moving an ACUCobol (Runtime is GT 5.1) application from SCO Unix to SuSE version 8.0. I've been able to get the program working, but can not get any of the reports to print. I am able to print from the command line and can successfully pipe a file to the printer (cat .profile | lp -s -dprinter).
The COBOL config file defines the printer as:
LPT1 -P lp -s -dprinter1
When I attempt to print from inside the program, I get a File Error 30,32. I had a programmer write a simple program to print a file, and that to results in the same error. This leads me to the conclusion that something in SuSE is not setup correctly (ACUCorp tech support indicates that many others are running Cobol Apps under SuSE), even thought I can print successfully.
Thanks in advance for any assistance.
Stu
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists/archive/suse-programming-e
-- Jerry Feldman Enterprise Systems Group Hewlett-Packard Company 200 Forest Street MRO1-3/F1 Marlboro, Ma. 01752 508-467-4315 http://www.testdrive.compaq.com/linux/
participants (3)
-
Charles Edward Brooks
-
Jerry Feldman
-
Stu Cater