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     Oracle SQL in Webfocus with length desc prior to field values

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Oracle SQL in Webfocus with length desc prior to field values
 Login/Join
 
Member
posted
Hi! I am trying to query an oracle DB using SQL in webfocus. Once I do a table hold and review my hold file. I am seeing a field value description prior to every fields. I tried using format alpha but it didn't help. Thanks in advance.

e.g. hold file

Firstname for 5 bytes field, Lastname for 5 bytes field

003Joe 005Smith

ENGINE SQLORA SET DEFAULT_CONNECTION TEST
SQL SQLORA PREPARE SQLOUT FOR
SELECT LAST_NAME,FIRST_NAME;
END

TABLE FILE SQLOUT
PRINT LAST_NAME FIRST_NAME
ON TABLE HOLD AS TEST1 FORMAT ALPHA
END

-RUN


WebFocus 7.1.6 Local Platform:Windows XP Pro/W3k Server. Use:Integration (Oracle,VMS), Reporting
 
Posts: 7 | Registered: May 25, 2004Report This Post
Virtuoso
posted Hide Post
quote:
PRINT LAST_NAME FIRST_NAME

You appear to be getting 'column headings' try
PRINT LAST_NAME AS '' FIRST_NAME AS '',
NOTE NO SPACE BETWEEN SINGLE QUOTE MARKS.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Member
posted Hide Post
I just tried it. It didn't work. Thanks.


WebFocus 7.1.6 Local Platform:Windows XP Pro/W3k Server. Use:Integration (Oracle,VMS), Reporting
 
Posts: 7 | Registered: May 25, 2004Report This Post
Expert
posted Hide Post
quote:
Firstname for 5 bytes field, Lastname for 5 bytes field


You mean "Firstname for 3 bytes field, Lastname for 5 bytes field".

How are the columns defined in the Oracle table?


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
Member
posted Hide Post
Actual Oracle Fields:

SPRIDEN_ID VARCHAR2(9 BYTE) NOT NULL,
SPRIDEN_LAST_NAME VARCHAR2(60 BYTE) NOT NULL,
SPRIDEN_FIRST_NAME VARCHAR2(15 BYTE)

Actual Output:

000009A00000999 534390000005AAAAA 00006AAAAAA

I replaced the first and last with AA's. Thanks.


WebFocus 7.1.6 Local Platform:Windows XP Pro/W3k Server. Use:Integration (Oracle,VMS), Reporting
 
Posts: 7 | Registered: May 25, 2004Report This Post
Guru
posted Hide Post
Add this to your procedure (or global profile)

SQL SQLORA SET VARCHAR OFF


(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
Member
posted Hide Post
N.Selph, Thank you so much! It worked.


WebFocus 7.1.6 Local Platform:Windows XP Pro/W3k Server. Use:Integration (Oracle,VMS), Reporting
 
Posts: 7 | Registered: May 25, 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     Oracle SQL in Webfocus with length desc prior to field values

Copyright © 1996-2020 Information Builders