Focal Point
[SOLVED]FEX Names in a Folder

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

April 14, 2014, 08:41 AM
Michele Brooks
[SOLVED]FEX Names in a Folder
Does anyone know how to get a list of the FEX names that are in a folder in Dev Studio? Thanks.

This message has been edited. Last edited by: Michele Brooks,


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
April 14, 2014, 09:26 AM
Tom Flynn
  
APP QUERY IBISAMP HOLD
TABLE FILE FOCAPPQ
PRINT
    FILENAME
       COMPUTE STUD_ID/A70  = GETTOK(FILENAME,70,1,'.',70,'A70') ;
       COMPUTE FILE_EXT/A70 = GETTOK(FILENAME,70,-1,'.',70,'A70') ;
WHERE TOTAL FILE_EXT EQ 'fex';
-* ON TABLE HOLD AS PROGRAMS
END
-EXIT

Replace IBISAMP with your folder...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
April 14, 2014, 09:52 AM
Michele Brooks
Great! I'll try it. Thanks. Worked like a charm. Thanks again.

This message has been edited. Last edited by: Michele Brooks,


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
April 14, 2014, 10:39 AM
susannah
since you're in windows, there's always old school
CMD DIR C:\IBI\APPS\IBISAMP\*.FEX
will display to your screen
CMD DIR C:\IBI\APPS\IBISAMP\*.FEX > C:\IBI\APPS\IBISAMP\DELETEME.TXT /S
will save the list into a txt file
CMD DIR C:\IBI\APPS\IBISAMP\*.*
will display to your screen and redisplay your list and show your little list file




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
April 14, 2014, 10:48 AM
Dave
...and what if I want the same for a MR domain?


_____________________
WF: 8.0.0.9 > going 8.2.0.5
April 14, 2014, 10:58 AM
Tom Flynn
Hi Michele,
Welcome! Glad it worked for you...

Hi Dave,
In previous versions to 8, we use MREXTRACT(run nightly via ReportCaster) and read the txt files. 8 is now a repository...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
April 14, 2014, 11:21 AM
susannah
@Dave
CMD DIR C:\IBI\WEBFOCUS77\BASEDIR\untitled\app\*.fex
etc...




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
April 15, 2014, 02:59 AM
Dave
susannah,

first of all, I don't like saving a hardcopy .txt to the server.

What happens if more than one user runs it?

...and, how can I query the contents?

I'll explain.
We have a 'custom' tree-view that displays all available fexi per user per domain.
This is done by parsing calling ( httprequest ) the server and parsing the domain.htm

Meanwhile we've migrated the reportingserver to windows.
I'm looking for a better ( faster ) solution.

Querying would be nice.


_____________________
WF: 8.0.0.9 > going 8.2.0.5
April 15, 2014, 05:06 AM
Marcel Biron
quote:
Originally posted by Michele Brooks:
Great! I'll try it. Thanks. Worked like a charm. Thanks again.


And is it possible to search a string of characters inside every fex ? for example : to display the fex list using 'BYTOC' ?


WebFOCUS 7.6
Windows, All Outputs