RE: [U2] Run a program in Silent mode
My 2cents. Another alternative is to run it in phantom. All output will go to a como file which may be useful. Thanks, Marilyn A. Hilb Value Part, Inc Direct: 847-918-6099 Fax: 847-367-1892 [EMAIL PROTECTED] www.valuepart.com -Original Message- From: Joe Walter [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 6:29 PM To: u2-users@listserver.u2ug.org Subject:Re: [U2] Run a program in Silent mode I don't do Unidata, but if there are such things as procs in Unidata - which I take it there are from reading Allen Elwood's reply - you could also simply execute the program from a proc using the proc 'PH' command which hushes all output that would normally to the screen. Example proc: 001 PQ 002 HRUN PROGRAM.FILENAME PROGRAM.ITEMNAME or 002 HPROGRAM.ITEMNAME (to execute the program if it's compiled catalogued there is an executable verb for it) 003 PH the PH command should hush all output to terminal - sweet simple. below is some info on the proc ph command. proc.ph: (Command) Process output buffers with hush. Applicable release versions: AP, R83 Category PROC (92) Description processes the command(s) in the currently active output buffer(s) and hushes terminal output. Output which would normally go to the screen is turned off. Alternatively - if you are running this program/job as a phantom process and wan't to take the time effort, you could do something like this... PHANTOM.FLAG = @SYSTEM(25) ; *this returns a '1' of process is running as a phantom, otherwise returns a '0' then, for every print @(x,y) statement, do IF NOT(PHANTOM.FLAG) THEN PRINT @(X,Y) hope this helps. joey walter - Original Message - From: Allen E. Elwood [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org Sent: Wednesday, April 27, 2005 5:51 PM Subject: RE: [U2] Run a program in Silent mode You could also pass a parameter from the PROC and read the parameter in the program, like INPUT REALLY.PRINTING REALLY.PRINTING = (REALLY.PRINTING = Y) IF REALLY.PRINTING THEN GOSUB OPEN.PRINTER {rest of program} That way if the printer isn't opened, the output will scroll on the screen. And if someone did want to print they could run it from a proc that did a DATA Y in the appropriate position. fwiw, Allen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brutzman, Bill Sent: Wednesday, April 27, 2005 14:13 To: 'u2-users@listserver.u2ug.org' Subject: RE: [U2] Run a program in Silent mode I change all of the PRINT @(x,y) to crt @(x,y). --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Burwell, Edward Sent: Wednesday, April 27, 2005 1:22 PM To: 'u2-users@listserver.u2ug.org' Subject: [U2] Run a program in Silent mode Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? I have a program that prints to the screen that I want to run in an automatic mode and I want it to not print to the screen. We are on UniData 6 - aix. Thanks. Ed Burwell [EMAIL PROTECTED] 973.361.5400 x1512 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Run a program in Silent mode
Ed, Try HUSH. Here's the help for it: HUSH statement _ SYNTAX HUSH {ON | OFF | expression} [SETTING status] DESCRIPTION Use the HUSH statement to suppress the display of all output normally sent to a terminal during processing. HUSH also suppresses output to a COMO file or TANDEM display. SETTING status sets the value of a variable to the value of the HUSH state before the HUSH statement was executed. It can be used instead of the STATUS function to save the state so that it can be restored later. STATUS has a value of 1 if the previous state was HUSH ON or a value of 0 if the previous state was HUSH OFF. --Ron P. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burwell, Edward Sent: Wednesday, April 27, 2005 12:22 PM To: 'u2-users@listserver.u2ug.org' Subject: [U2] Run a program in Silent mode Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? snip --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Run a program in Silent mode
Hello, The UniBasicHUSH command enables or disables terminal output Manu Fernandes Infodata S.`r.l. - Original Message - From: Burwell, Edward [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org Sent: Wednesday, April 27, 2005 7:21 PM Subject: [U2] Run a program in Silent mode Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? I have a program that prints to the screen that I want to run in an automatic mode and I want it to not print to the screen. We are on UniData 6 - aix. Thanks. Ed Burwell [EMAIL PROTECTED] 973.361.5400 x1512 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Run a program in Silent mode
Sweet! Thanks!!! :-) -Original Message- From: Pingilley, Ron [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 1:41 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Run a program in Silent mode Ed, Try HUSH. Here's the help for it: HUSH statement _ SYNTAX HUSH {ON | OFF | expression} [SETTING status] DESCRIPTION Use the HUSH statement to suppress the display of all output normally sent to a terminal during processing. HUSH also suppresses output to a COMO file or TANDEM display. SETTING status sets the value of a variable to the value of the HUSH state before the HUSH statement was executed. It can be used instead of the STATUS function to save the state so that it can be restored later. STATUS has a value of 1 if the previous state was HUSH ON or a value of 0 if the previous state was HUSH OFF. --Ron P. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burwell, Edward Sent: Wednesday, April 27, 2005 12:22 PM To: 'u2-users@listserver.u2ug.org' Subject: [U2] Run a program in Silent mode Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? snip --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ __ This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com. __ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Run a program in Silent mode
How about HUSH ON (then HUSH OFF at the end) Karl quote who=Burwell, Edward Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? I have a program that prints to the screen that I want to run in an automatic mode and I want it to not print to the screen. We are on UniData 6 - aix. Thanks. Ed Burwell [EMAIL PROTECTED] 973.361.5400 x1512 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- Karl L. Pearson Director of IT, ATS Industrial Supply Direct: 801-978-4429 Toll-free: 800-789-9300 1,29 Fax: 801-972-3888 http://www.atsindustrial.com [EMAIL PROTECTED] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Run a program in Silent mode
You could try HUSH -Dianne Burwell, Edward wrote: Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? I have a program that prints to the screen that I want to run in an automatic mode and I want it to not print to the screen. We are on UniData 6 - aix. Thanks. Ed Burwell [EMAIL PROTECTED] 973.361.5400 x1512 --- --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Run a program in Silent mode
HUSH ON / HUSH OFF in universe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burwell, Edward Sent: Wednesday, April 27, 2005 12:22 PM To: 'u2-users@listserver.u2ug.org' Subject: [U2] Run a program in Silent mode Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? I have a program that prints to the screen that I want to run in an automatic mode and I want it to not print to the screen. We are on UniData 6 - aix. Thanks. Ed Burwell [EMAIL PROTECTED] 973.361.5400 x1512 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Run a program in Silent mode
You could use HUSH ON and HUSH OFF within the program, or you could execute the program from another BASIC program using the EXECUTE statement's CAPTURING clause. You could also run the program from unix using output redirection, i.e: udt progname /dev/null -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Burwell, Edward Sent: Wednesday, April 27, 2005 12:22 PM To: 'u2-users@listserver.u2ug.org' Subject: [U2] Run a program in Silent mode Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? I have a program that prints to the screen that I want to run in an automatic mode and I want it to not print to the screen. We are on UniData 6 - aix. Thanks. Ed Burwell [EMAIL PROTECTED] 973.361.5400 x1512 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Run a program in Silent mode
It's been a while since I worked on UniData but I believe you are looking for HUSH ON/OFF. Gordon J. Glorfield Sr. Applications Developer MAMSI (A UnitedHealth Company) 301-360-8839 [EMAIL PROTECTED] wrote on 04/27/2005 01:21:39 PM: Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? I have a program that prints to the screen that I want to run in an automatic mode and I want it to not print to the screen. We are on UniData 6 - aix. Thanks. Ed Burwell [EMAIL PROTECTED] 973.361.5400 x1512 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Run a program in Silent mode
HUSH did the trick! Thanks to you all! -Original Message- From: Ed Clark [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 2:09 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Run a program in Silent mode You could use HUSH ON and HUSH OFF within the program, or you could execute the program from another BASIC program using the EXECUTE statement's CAPTURING clause. You could also run the program from unix using output redirection, i.e: udt progname /dev/null -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Burwell, Edward Sent: Wednesday, April 27, 2005 12:22 PM To: 'u2-users@listserver.u2ug.org' Subject: [U2] Run a program in Silent mode Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? I have a program that prints to the screen that I want to run in an automatic mode and I want it to not print to the screen. We are on UniData 6 - aix. Thanks. Ed Burwell [EMAIL PROTECTED] 973.361.5400 x1512 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ __ This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com. __ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Run a program in Silent mode
I change all of the PRINT @(x,y) to crt @(x,y). --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Burwell, Edward Sent: Wednesday, April 27, 2005 1:22 PM To: 'u2-users@listserver.u2ug.org' Subject: [U2] Run a program in Silent mode Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? I have a program that prints to the screen that I want to run in an automatic mode and I want it to not print to the screen. We are on UniData 6 - aix. Thanks. Ed Burwell [EMAIL PROTECTED] 973.361.5400 x1512 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Run a program in Silent mode
You could also pass a parameter from the PROC and read the parameter in the program, like INPUT REALLY.PRINTING REALLY.PRINTING = (REALLY.PRINTING = Y) IF REALLY.PRINTING THEN GOSUB OPEN.PRINTER {rest of program} That way if the printer isn't opened, the output will scroll on the screen. And if someone did want to print they could run it from a proc that did a DATA Y in the appropriate position. fwiw, Allen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brutzman, Bill Sent: Wednesday, April 27, 2005 14:13 To: 'u2-users@listserver.u2ug.org' Subject: RE: [U2] Run a program in Silent mode I change all of the PRINT @(x,y) to crt @(x,y). --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Burwell, Edward Sent: Wednesday, April 27, 2005 1:22 PM To: 'u2-users@listserver.u2ug.org' Subject: [U2] Run a program in Silent mode Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? I have a program that prints to the screen that I want to run in an automatic mode and I want it to not print to the screen. We are on UniData 6 - aix. Thanks. Ed Burwell [EMAIL PROTECTED] 973.361.5400 x1512 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Run a program in Silent mode
I don't do Unidata, but if there are such things as procs in Unidata - which I take it there are from reading Allen Elwood's reply - you could also simply execute the program from a proc using the proc 'PH' command which hushes all output that would normally to the screen. Example proc: 001 PQ 002 HRUN PROGRAM.FILENAME PROGRAM.ITEMNAME or 002 HPROGRAM.ITEMNAME (to execute the program if it's compiled catalogued there is an executable verb for it) 003 PH the PH command should hush all output to terminal - sweet simple. below is some info on the proc ph command. proc.ph: (Command) Process output buffers with hush. Applicable release versions: AP, R83 Category PROC (92) Description processes the command(s) in the currently active output buffer(s) and hushes terminal output. Output which would normally go to the screen is turned off. Alternatively - if you are running this program/job as a phantom process and wan't to take the time effort, you could do something like this... PHANTOM.FLAG = @SYSTEM(25) ; *this returns a '1' of process is running as a phantom, otherwise returns a '0' then, for every print @(x,y) statement, do IF NOT(PHANTOM.FLAG) THEN PRINT @(X,Y) hope this helps. joey walter - Original Message - From: Allen E. Elwood [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org Sent: Wednesday, April 27, 2005 5:51 PM Subject: RE: [U2] Run a program in Silent mode You could also pass a parameter from the PROC and read the parameter in the program, like INPUT REALLY.PRINTING REALLY.PRINTING = (REALLY.PRINTING = Y) IF REALLY.PRINTING THEN GOSUB OPEN.PRINTER {rest of program} That way if the printer isn't opened, the output will scroll on the screen. And if someone did want to print they could run it from a proc that did a DATA Y in the appropriate position. fwiw, Allen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brutzman, Bill Sent: Wednesday, April 27, 2005 14:13 To: 'u2-users@listserver.u2ug.org' Subject: RE: [U2] Run a program in Silent mode I change all of the PRINT @(x,y) to crt @(x,y). --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Burwell, Edward Sent: Wednesday, April 27, 2005 1:22 PM To: 'u2-users@listserver.u2ug.org' Subject: [U2] Run a program in Silent mode Hello, Is there a simple UniBasic command (kinda like ECHO OFF) that would cause all PRINT @(x,y) statements to be suppressed? I have a program that prints to the screen that I want to run in an automatic mode and I want it to not print to the screen. We are on UniData 6 - aix. Thanks. Ed Burwell [EMAIL PROTECTED] 973.361.5400 x1512 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/