IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Converting Columns into Rows
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Platinum Member
Posted
Hi All,

i have 10 columns iwant put alll these 10 columns in to 2 columns i there any workaround please let me know.

thanks,
Kalyan


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
 
Posts: 155 | Location: Bangalore. | Registered: January 24, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
I don't understand this question.

I think what you're looking for may be a SQL Decode or CASE statement.


Prod: Single Win2003 Server running Webfocus 7.6.2 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 541 | Registered: January 04, 2007Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
sounds like you're just converting columns to columns. try using a DEFINE. Otherwise, try the McGyver technique or one of the other solutions which have been posted numerous times. You can probably do a find on "columns to rows" and get a bunch of hits.


Regards,

Darin



WF Server: 7.1.6 on Z/OS and Linux, ReportCaster, Self-Service, MRE, Java
Data: DB2, DB2/UDB, Adabas, SQL Server Output: HTML,PDF,Excel2K
WF Client: Linux w/WebSphere, Servlet, CGI
 
Posts: 1323 | Location: Salt Lake City, Utah | Registered: February 02, 2007Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Hi i dont want to convert columns to columns.
i will explain clearly,
TABLE FILE ABCD
PRINT
ABC
COMPUTE aCTUAL/D12=....;
COMPUTE ASD/D12 = ;
COMPUTE DDD/D12=;
BBC
COMPUTE XCTUAL/D12=....;
COMPUTE AXD/D12 = ;
COMPUTE XDD/D12=;
aCROSS VVVV
END

THIS IS THE REPORT I WANT TO ARRANGE THE ABOVE REPORT TO BE LIKE THIS
ACROSS VALUES
------------
ABC ACTUAL 222 222 222
ASD 342 11 11
DDD 234 123 11
BBC XCTUAL 112 332 33
AXD 22 22 35
XXD 121 231 34

I WANT THE OUTPUT LIKE ABOVE.


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
 
Posts: 155 | Location: Bangalore. | Registered: January 24, 2006Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
I"m not exactly sure what you want...but try using OVER.


WebFOCUS 7.6.1 Win 2003 Test -7.6.5
 
Posts: 1188 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Converting Columns into Rows

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.