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     CONCATENATING in the HOLD file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
CONCATENATING in the HOLD file
 Login/Join
 
<Navin>
posted
Hi


SQL SQLORA

SELECT 'A' A FROM DUAL;

TABLE FILE SQLOUT
PRINT
*
ON TABLE HOLD
END

TABLE FILE HOLD
PRINT
*
COMPUTE B/A10 = "a" | A ;
END

**************************************

My Intention is to print B as "aA" . Rather than using the value in the dual i want to concatenate the "a" with A and print it as "aA".

So i use the following code to print. But it throws the follwoing error though the result is an alphanumeric.


(FOC282) RESULT OF EXPRESSION IS NOT COMPATIBLE WITH THE FORMAT OF FIELD: B
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND

So any resolutions ??
 
Report This Post
Virtuoso
posted Hide Post
Navin

what is the picture of your original field "A" ?

if this is p.e. A15 or D7.2 or YYMD you can not concatenate the "a" and that field, it should fit.

Frank




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Virtuoso
posted Hide Post
quote:
COMPUTE B/A10 = "a" | A ;

Have you tried changing the double quote mark to a single quote mark in the above. If the length of A is 9 or less what you have will work, however as Frank says if it isn't alpha it won't until converted.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
Navin :
Like Frank says, I would first inquire the field format of the field A in your hold file by using this command -

? HOLD holdfilename

Make sure it is what you think it should be and then do the concatenation.

Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Report This Post
<Navin>
posted
All

like every one said the length of the A in the hold file is 32.


*************** HOLD FILE *********************
0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1
0DEFINITION OF HOLD FILE: HOLD
0FIELDNAME ALIAS FORMAT
A E01 A32 MISSING = ON

***********************************************

So when i used as A33 , it worked.
But can anyone say why it is taking defaultly as 32 for just a single character. ??
 
Report 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     CONCATENATING in the HOLD file

Copyright © 1996-2020 Information Builders