Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] File statistics in a amper-variable
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] File statistics in a amper-variable
 Login/Join
 
Silver Member
posted
Can I get the output to ? FILE filename into a variable? I'm need to find the last update time to be displayed on a report.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8

Windows, All Outputs
 
Posts: 42 | Location: Phoenix | Registered: March 01, 2018Reply With QuoteReport This Post
Expert
posted Hide Post
Hi Les,
One possibility(I'm sure there are others):

Try APP QUERY and do a -READ or -READFILE on the HOLD:
  
APP QUERY ibisamp HOLD
-RUN
TABLEF FILE FOCAPPQ
PRINT * 
 WHERE FILENAME LIKE '%.foc';
  ON TABLE HOLD FORMAT ALPHA
END
-RUN
?FF HOLD
-EXIT

Probably have to change the Date and Time formats...

hth


Tom Flynn
WebFOCUS 7.7.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1946 | Location: Parker, CO | Registered: January 31, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
This is a bit excessive, and uses a remote call to the loopback node of the reporting server, as well as the EMGSRV setting to route output to a file, but seems to work.

SET EMGSRV = FILE
-RUN
REMOTE DEST = LOOPBACK

-REMOTE BEGIN

? FILE CAR

-REMOTE END

-RUN
SET EMGSRV = ON
-RUN

EX -LINES * EDAPUT MASTER,EMGFILE,CV,FILE
FILENAME=EMGFILE, SUFFIX=FIX,$
SEGNAME=EMGFILE, $
  FIELD=LINE ,ALIAS=  ,A255 ,A255 ,$
EDAPUT*

-RUN

TABLE FILE EMGFILE
PRINT *
END


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6105 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
Silver Member
posted Hide Post
Sorry Waz, you did not win this time. Tom's was much simpler.

[IMG]\\DPSSHARE\Home\zpsm448\My Documents\My Pictures\cash_winner.jpg[/IMG]


WebFOCUS 8

Windows, All Outputs
 
Posts: 42 | Location: Phoenix | Registered: March 01, 2018Reply With QuoteReport This Post
Expert
posted Hide Post
Well Lee, it is how someone interprets the question.

Tom's will give you the last change date of the file.

If thats all you need, then yes its the easiest way.

If you need to know the last update of each segment in the FOCUS file, then this will help.

Good One Tom


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6105 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] File statistics in a amper-variable

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.