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     [SOLVED] UNIX shell command data source

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] UNIX shell command data source
 Login/Join
 
Platinum Member
posted
Hi

I am creating a text file via a Unix shell command from inside a fex. The script runs fine and the file is created.

However, how can I read the text file that was created as a datasource in webfocus? I need a UNIX equivalent of SQLOUT after SQL passthrough.

Is there an easy way to do this? Or do I need to create a master file inside my unix script?

Or can I create the master inside the fex?

thanks

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


WF 8.0.0.5M
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Platinum Member
posted Hide Post
Can I use -READ and get the results into a hold file? Without looping through each line and appending rows one by one?


WF 8.0.0.5M
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Expert
posted Hide Post
Create a generic master that has one large text field. I call mine LINE80. Filedef LINE80 to your new file and you can do a table request against it and create a hold file.

P.S. I also have one for 100, 200, 300.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Guru
posted Hide Post
If you want, you can also create a master inside your fex. Here's an example of how we do it:

UNIX echo 'FILE=MANAGEMENT,          SUFFIX=FIX,                              '   > /eda53/ibi/apps/masters/entman.mas
UNIX echo ' REMARKS='Entitlement Management File',                        $'  >> /eda53/ibi/apps/masters/entman.mas
UNIX echo ' SEGNAME=ENTMANSEG,                                          $'  >> /eda53/ibi/apps/masters/entman.mas
UNIX echo ' FIELD=RPT_TO,   ALIAS=A01,     USAGE=A2,    ACTUAL=A2,      $'  >> /eda53/ibi/apps/masters/entman.mas
UNIX echo ' FIELD=NAME,     ALIAS=A01,     USAGE=A30,   ACTUAL=A30,     $'  >> /eda53/ibi/apps/masters/entman.mas
UNIX echo ' FIELD=LOGON_ID, ALIAS=A02,     USAGE=A6,    ACTUAL=A6,      $'  >> /eda53/ibi/apps/masters/entman.mas
UNIX echo ' FIELD=CC,       ALIAS=A03,     USAGE=A4,    ACTUAL=A4,      $'  >> /eda53/ibi/apps/masters/entman.mas

UNIX chmod 666 /eda53/ibi/apps/masters/entman.mas
UNIX more /eda53/ibi/apps/masters/entman.mas


Glenda

In FOCUS Since 1990
Production 8.2 Windows
 
Posts: 301 | Location: Galveston, Texas | Registered: July 07, 2004Report This Post
Guru
posted Hide Post
Leave out the "more" command once you are sure your code is correct. We use it to double check the master.


Glenda

In FOCUS Since 1990
Production 8.2 Windows
 
Posts: 301 | Location: Galveston, Texas | Registered: July 07, 2004Report This Post
Platinum Member
posted Hide Post
thanks a million Glenda and Ginny. Those are both great ideas. I will test them both and see which one works better for us
Thx!


WF 8.0.0.5M
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Platinum Member
posted Hide Post
Just as a follow up, I am using Ginny's suggestion to make a generic master file and then change the filedef as needed to use the generated file.

Thanks!

Jodye


WF 8.0.0.5M
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report 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     [SOLVED] UNIX shell command data source

Copyright © 1996-2020 Information Builders