Focal Point
[CLOSED] &FOCUOPC variable

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/868103742

September 23, 2009, 03:19 AM
philippe@Nantes
[CLOSED] &FOCUOPC variable
Hello everybody;
Is anyone knowing about this variable. This is in MVS environment ?

This message has been edited. Last edited by: Kerry,


WebFocus thru Dev Studio version 7.6.11
Dev Studio on Windows Xp, Webfocus Client on UNIX basing on TOMCAT and DB2,
Reporting Server on MVS , USS and on UNIX
September 23, 2009, 04:33 AM
Danny-SRL
Philippe,

Sorry, never heard of &FOCUOPC. However &FOCCPU exists. Also, it is not found in the documentation.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

September 23, 2009, 09:52 AM
Francis Mariani
quote:
FOCCPU

I found this mainframe program in a dusty corner of my library:

-SET &CPU1 = &FOCCPU;

EXEC PROGRAMME
-RUN

-SET &CPU2 = &FOCCPU;

-SET &TOTCPU = (&CPU2 - &CPU1);
-SET &SECCPU = &TOTCPU / 1000;
-SET &CPUDEC = &TOTCPU - (&SECCPU * 1000);
-SET &MINCPU = &SECCPU / 60;
-SET &SECCPU = &SECCPU - (&MINCPU * 60);

-TYPE TEMPS CPU : &MINCPU MIN. &SECCPU,&CPUDEC SEC.


It appears &FOCCPU is the current time in milliseconds.

I also found it mentioned in the PDF version of the FOCUS for mainframe documentation:

FOCUS for Mainframe > Developing Applications (Version 7 Release 3) > Managing Flow of Control in an Application > Using Variables in a Procedure > System Variables

"&FOCCPU - milliseconds - Calculates the OS CPU time, for MVS only. In CMS, this returns the same value as &FOCTTIME"


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server