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     [CLOSED] How to reference columns that have blanks in the name?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to reference columns that have blanks in the name?
 Login/Join
 
Expert
posted
SET ASNAMES=ON
SET HOLDLIST=PRINTONLY
SET HOLDFORMAT=ALPHA
TABLE FILE CAR
SUM
SEATS
ACROSS COUNTRY
ON TABLE HOLD AS H001
END
?FF H001

TABLE FILE H001
PRINT
COMPUTE S1/D5 = SEAENGLAND;
COMPUTE S2/D5 = SEAW GERMANY;
END

The first TABLE produces a HOLD file with these columns:

SEAENGLAND, SEAFRANCE, SEAITALY, SEAJAPAN, SEAW GERMANY.

How does one reference the column with name "SEAW GERMANY" (the 2nd COMPUTE in this example throws an error)? I would rather not use "SEAW" or "E05".

Thanks,

This message has been edited. Last edited by: Francis Mariani,


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
You use quotes around the field.

Not sure if its single or double.

I think Developer Studio does this for you, a good place to test it.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
The problem with using quotes:

COMPUTE S2/D5 = 'SEAW GERMANY' * 123;
This does not work.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Amazingly, I cannot manipulate The Dev Studio GUI to create a report based on a HOLD file! Am I an idiot?


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
If you create the hold file earlier in the fex in the DEV Studio GUI, you should see it in the list of tables the GUI throws up, in the next piece of its "necklace".


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Platinum Member
posted Hide Post
You may reference field names with a space as verb objects using single quotes. People use to do this to make for "pretty" column heading.

It also had the effect of driving the support people crazy (also know as me) , when the someone called about error caused by omitted single quotes. The syntax would looked perfect unless you looked at the master. Asking for the master file description often became a "teaching moment" because the caller had never heard of such a thing. They just copied from someone else, and "only made a little change".



TABLE FILE INSURE
SUM
'WRITTEN PREMIUM'
'EARNED PREMIUM'
BY POLICY
END


But in compute / define to the left of an equal sign "=" Focus assumes anything in single quotes is a literal.

My advice get ride of the "blank-it-blank" space.


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



 
Posts: 129 | Registered: June 01, 2005Report This Post
Platinum Member
posted Hide Post
Hi

Another option to use the internal columns numbering in the report itself

SET ASNAMES=ON
SET HOLDLIST=PRINTONLY
SET HOLDFORMAT=ALPHA
TABLE FILE CAR
SUM
SEATS
ACROSS COUNTRY
ON TABLE HOLD AS H001
END
-RUN



TABLE FILE H001
PRINT
'H001.H001.SEAW GERMANY' NOPRINT
COMPUTE AA/D5=C1 * 5;
COMPUTE DD/D5=SEAENGLAND;

ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
ENDSTYLE
END

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


Yours,
Eran
SRL Products

http://www.srl.co.il

 
Posts: 97 | Location: Tel Aviv, Israel | Registered: November 20, 2005Report This Post
Expert
posted Hide Post
Looks like you can only use the fields as a verb or sort field.

Defines or Computes just won't work.

Is this from the ACROSS HOLD only ?, if so, then prep the data prior to holding, converting all apaces to '_'.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
I couldn't get a simple fex that reports off a HOLD file to work in the GUI - I have GUI-phobia and the GUI knows it.

Waz, as you suggested, I decided on ensuring there were no blanks in the values that are used in the ACROSS - so all is good.

Thanks,


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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     [CLOSED] How to reference columns that have blanks in the name?

Copyright © 1996-2020 Information Builders