The ID of _PH_ entry is not Z_<pid>.  It is Z_<capturingLevel><pid>.
<capturingLevel> is 3 digits, zero filled.  <pid> is not zero filled.

Note that it is capturing level, not EXECUTE level (@LEVEL). If you have
4 levels of EXECUTE, but only 2 have CAPTURING clauses, in the lowest
child @LEVEL will be 3 but the capturing level will be 001 in the Z_
item ID.

At least that is how it is on our HPUX system.

This is related to the MAX_CAPT_LEVEL configuration item.  I believe it
is set to 2 out of the box.  Ours is set to 5.

Regardless of what the capturing level is, just having one or more Z_
files for your pid is enough to know that nothing from a
CRT/PRINT/DISPLAY will get to the screen. It will get captured
somewhere.

I agree that having an easier way to determine if output is being
captured is a good idea.  @CAPT_LEVEL would be a nice addition.

Dean Armbruster
System Analyst
757-989-2839
-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Symeon Breen
Sent: Tuesday, June 26, 2012 13:23
To: 'U2 Users List'
Subject: Re: [U2] Is there any way to tell if I am in anEXECUTE level
andCAPTURING is turned on?

>From experimentation on unidata on linux, if you execute something with
capturing it creates an entry in _PH_ of Z_{pid}  the pid is zero filled
to
8 digits e.g. _PH_/Z_00022141




-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of David A.
Green
Sent: 26 June 2012 15:01
To: 'U2 Users List'
Subject: Re: [U2] Is there any way to tell if I am in an EXECUTE level
andCAPTURING is turned on?

How about creating a COMMON variable that the program can set before
executing the command with a CAPTURING clause?

David A. Green
(480) 813-1725
DAG Consulting

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Doug Farmer
Sent: Friday, June 22, 2012 6:49 AM
To: U2 Users List
Subject: Re: [U2] Is there any way to tell if I am in an EXECUTE level
andCAPTURING is turned on?

UniData 

Looks like there is no easy solution. Messages are shown in a generic
subroutine and I do not want to do a lot of IO or CPU time to determine
if
CAPTURING is on. The subroutine is called thousands of times a day for a
user. For the few times this has happened over the years, I guess I will
just fix the problems when they come up.

Thanks everyone for their input.

Doug


-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Ed Clark
Sent: Thursday, June 21, 2012 5:22 PM
To: U2 Users List
Subject: Re: [U2] Is there any way to tell if I am in an EXECUTE level
andCAPTURING is turned on?

universe or unidata? I don't have a full answer either way, but I seem
to
recall that unidata holds CAPTURING output in a temporary file. Maybe
that
file can be checked for.

On Jun 21, 2012, at 10:08 AM, Doug Farmer wrote:

> I just had a situation where a program was printing an error message 
> and waiting for the user to respond by pressing Enter. But, the 
> program was being executed by another program using the CAPTURING
option.
> 
> Is there any way someone knows of to tell if the CAPTURING option is
on?
> If so, I can write the error message to a log file instead of 
> displaying it and waiting for a response.
> 
> I looked at all the SYSTEM(xx) options and do not see anything there.
> 
> Thanks in Advance
> 
> Doug
> --------------------------------------------------------
> 
> This e-mail is for the use of the intended recipient(s) only. If you
have received this e-mail in error, please notify the sender immediately
and
then delete it. If you are not the intended recipient, you must not use,
disclose or distribute this e-mail without the author's prior
permission. We
have taken precautions to minimize the risk of transmitting software
viruses, but we advise you to carry out your own virus checks on any
attachment to this message. We cannot accept liability for any loss or
damage caused by software viruses. Any views and/or opinions expressed
in
this e-mail are of the author only and do not represent the views of
Epicor
Software Corporation or any other company within its group.
> 
> 
> This message has been scanned for malware by Websense. 
> www.websense.com _______________________________________________
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Click
https://www.mailcontrol.com/sr/ZHJSQLX+SpPTndxI!oX7Us7Qlo!t9IHt4WE2DA5Hj
!kWNSr8qrt6LXg6vr6+3RaGatMIqsrnApW1yubdBaCdqw==  to report this email as
spam.
--------------------------------------------------------

This e-mail is for the use of the intended recipient(s) only. If you
have
received this e-mail in error, please notify the sender immediately and
then
delete it. If you are not the intended recipient, you must not use,
disclose
or distribute this e-mail without the author's prior permission. We have
taken precautions to minimize the risk of transmitting software viruses,
but
we advise you to carry out your own virus checks on any attachment to
this
message. We cannot accept liability for any loss or damage caused by
software viruses. Any views and/or opinions expressed in this e-mail are
of
the author only and do not represent the views of Epicor Software
Corporation or any other company within its group.
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2180 / Virus Database: 2437/5093 - Release Date:
06/25/12

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to