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  iWay Software Product Forum on Focal Point    using column name as data in row record

Read-Only Read-Only Topic
Go
Search
Notify
Tools
using column name as data in row record
 Login/Join
 
Member
posted
One of the files, i am working with, has 7 columns, with names representing a day of the week in date format. The data in these columns is numeric and represents units for each day - similar to the below:
ProductName 7/14/2012 7/16/2012 7/17/2012
Product A 6 5 6

As you see, the 'Date' columns are dynamic and will change based on the specific week, but I will always have 7 columns representing each day in a week, so in Data Migrator flow, I need to capture day1 (field 19 for instance) and day7 and pass the values of these COLUMN NAMES as actual data to Start_date and End_date columns. Please note that I used generic column names (Fieldname1, Fieldname2, Fieldname3..etc) in a synonym, so I can isolate what are the Date values where FiledName1 = 'ProductName'. Is there a way to dynamically manage updating the start/end date columns based on source data? I was loking for some define statement that can be added to the synonym , but could not find anything useful(working).


WebFOCUS 7.7, iWay Data Migrator, Windows
Excel, PDF, HTML, XML
 
Posts: 19 | Registered: March 19, 2012Report This Post
Guru
posted Hide Post
Could you provide a more complete example of an input file? Do all of the files have just two rows?


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
Member
posted Hide Post
Sorry for late response. I used another software to accomplish this. However, here is a sample data:

Location,Dept,MIC,Group,Major,Minor,Sel,Style,Style Desc,Color Code,Color Desc,Size Code,Size Desc,Primary,OH,OO,ST,Data Type,7/8/2012,7/9/2012,7/10/2012,7/11/2012,7/12/2012,7/13/2012,7/14/2012,Total
Filters -->,,,,,,,,,,,,,,,,,,,,,,,,,
ALL,243,635,REP, , ,155,12012846,PE SIL/PPW,40,SILVER,0,NO SIZE,145236958,96,0,13.5,Quantity,1,1,2,0,3,4,4,15
ALL,243,635,REP, , ,155,12012846,PE SIL/PPW,40,SILVER,0,NO SIZE,145236958,96,0,13.5,Average,14.4,4.8,14.4,0,17.6,14.64,16.8,15.1
ALL,243,635,REP, , ,150,30124,CE 14G/NF CHOOP,710,GOLD,0,NO SIZE,60498911,128,0,9.2,Quantity,2,2,2,1,2,1,3,13
ALL,243,635,REP, , ,150,30124,CE 14G/NF CHOOP,710,GOLD,0,NO SIZE,60498911,128,0,9.2,Average,20.8,20.8,15.6,15.6,15.6,26,15.6,18

Thanks!


WebFOCUS 7.7, iWay Data Migrator, Windows
Excel, PDF, HTML, XML
 
Posts: 19 | Registered: March 19, 2012Report This Post
Guru
posted Hide Post
Just saw your reply. I did this by creating two synonyms, one for the data rows ANNAR with HEADER=YES, and one for the header line ANNAH with HEADER=NO. Then joined ANNAR to a sub-select:

SELECT
T1. all columns needed...,
T2.START_DATE ,
T2.END_DATE
FROM
(annar T1 LEFT OUTER JOIN
(SELECT
'ALL' AS LOCATION ,
T1.DAY1 AS START_DATE ,
T1.DAY2 AS END_DATE
FROM
annah T1
WHERE
T1.LOCATION = 'Location'
) T2
ON
T1.LOCATION = T2.LOCATION )


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    using column name as data in row record

Copyright © 1996-2020 Information Builders