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] Converting Multiple Columns into One

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Converting Multiple Columns into One
 Login/Join
 
Member
posted
I have a hold file created that structures my table as one row with multiple columns, like so:

Param1Name Param1Mean Param1Std Param2Name Param2Mean Param2Std Param3Name Param3Mean Param3Std etc..

I need to format the table as:

ParamName ParamMean ParamStd

Param1Name Param1Mean Param1Std
Param2Name Param2Mean Param2Std
etc...

I'm pretty new to WebFocus, so please explain suggestions!

Thank you!

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 1 | Registered: July 16, 2019Report This Post
Virtuoso
posted Hide Post
Using the columns as BY fields should work. Except if we're missing information...

For each value in ParamName & ParamMean & ParamStd it will generate a new line
TABLE FILE abc
BY ParamName
BY ParamMean
BY ParamStd
ON TABLE SET BYDISPLAY ON
END


Please use the code tag when posting sample data or code
It's the last icon on the ribbon that looks like the below
</>


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Guru
posted Hide Post
In this case you can use OVER:

TABLE FILE CAR
PRINT *
WHERE RECORDLIMIT EQ 1
ON TABLE HOLD AS TST
END

TABLE FILE TST
PRINT
 CAR AS ''
 MODEL AS '' OVER
 COUNTRY AS ''
 SEATS AS ''
END
  


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Expert
posted Hide Post
So, each row in your source file can have a different amount of 'groups' of data, as in "Param1Name Param1Mean Param1Std" to "Param#Name Param#Mean Param#Std", where the '#' can vary from 1 to 'a lot'?
If so, you may be able to loop thru it to break it down.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 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] Converting Multiple Columns into One

Copyright © 1996-2020 Information Builders