Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Dynamic Filename based on FEX

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Dynamic Filename based on FEX
 Login/Join
 
Member
posted
Hi,

Is it possible to set the output filename of a fex as the fex name itself?

For example, I have the following:

-SET &FILENAME = 'REPORT1';

DYNAM ALLOC DD &FILENAME SYSOUT 4 WRITER UKFOC FCB CSV DEST R371

Rather than coding the name within the fex manually I'd like it to look at the name of the fex that is running. Maybe it's something like:

-SET &FILENAME = FEXNAME

???

Hope this makes sense. If it can be done it would be very helpful as the code could be used in many of my reports and would be a true representation of which report produced the output.

Many thanks,
Jamie


Z/OS - MF FOCUS 7.1.1
 
Posts: 13 | Location: UK | Registered: February 15, 2006Report This Post
Expert
posted Hide Post
Jamie,

You might be able to use &FOCFOCEXEC, but sometimes this is set to _adhocfex of something similar.

To identify the amper variables used internally that are available to you, just code -? & within your fex and then view the sysout.

T

p.s. please update your signature with platform and version info so that we can be specific about your environment. Thx.



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Thanks Tony.

I did that and I got the following:

CURRENTLY DEFINED & VARIABLES:
&ACCEPTS = 0
&AUTOINDEX = NO
&BASEIO = 0
&CHNGD = 0
&DATE = 03/14/06
&DELTD = 0
&DMY = 140306
&DMYY = 14032006
&DUPLS = 0
&FORMAT = 0
&INDEXIO = 0
&INPUT = 0
&INVALID = 0
&LINES = 0
&MDY = 031406
&MDYY = 03142006
&NOMATCH = 0
&READS = 0
&RECORDS = 0
&REJECTS = 0
&RETCODE = 0
&SETFILE =
&SORTIO = 0
&TOD = 15.41.17
&TRANS = 0
&YMD = 060314
&YYMD = 20060314

Most of these appear to relate to today's date and I couldn't see any mention of &FOCFOCEXEC or anything similar.

However, I tried using the &FOCFOCEXEC as the output filename in a fex and it worked! Hurrah!

Thank you very much for your help.

One more question, I appear to be using Focus version 7.1.1, (According to the sysout) but how do I find out what other useful information to include in my signature?
I am using Focus through Personal Communication so it's not WebFocus, just mainframe.

Many thanks,
Jamie


Z/OS - MF FOCUS 7.1.1
 
Posts: 13 | Location: UK | Registered: February 15, 2006Report This Post
Expert
posted Hide Post
Glad it worked for you Jamie! Smiler

For your signature I would (haven't we been here before?) just put "MF FOCUS 7.1.1". I think we established that you were possibly on Z/OS but I can't remember.

T

p.s. I sent you a PM a while back, I don't think you have read it yet?



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Dynamic Filename based on FEX

Copyright © 1996-2020 Information Builders