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.
Column1FieldNames Column2-DataNames
COUNTRY ENGLAND
COUNTRY ENGLAND
COUNTRY ENGLAND
COUNTRY ITALY
COUNTRY ITALY
COUNTRY JAPAN
COUNTRY JAPAN
CAR JAGUAR
CAR JENSEN
CAR TRIUMPH
CAR ALFA ROMEO
CAR MASERATI
CAR DATSUN
CAR TOYOTA
Note:Column can be alphanumeric or numeric. Total number of columns is 50 in my requirement.
I can accomplish this using FILEDEF by appending one over the other. But, is there any other simple way to do this?
SET HOLDLIST=PRINTONLY
FILEDEF HLD DISK HLD.FTM
-RUN
TABLE FILE CAR
PRINT
COMPUTE COUNTRY1/A16=COUNTRY;
ON TABLE HOLD AS HLD
END
FILEDEF HLD DISK HLD.FTM( APPEND
-RUN
TABLE FILE CAR
PRINT
COMPUTE COUNTRY1/A16=CAR;
ON TABLE HOLD AS HLD
END
TABLE FILE HLD
PRINT *
END
Thanks, RifazThis message has been edited. Last edited by: Rifaz,
-Rifaz
WebFOCUS 7.7.x and 8.x
Posts: 406 | Location: India | Registered: June 13, 2013
SET ACROSSPRT = COMPRESS DEFINE FILE CAR CNTCR/D3 WITH MODEL=CNTCR+1; END TABLE FILE CAR PRINT CAR AS 'Car' OVER COUNTRY AS 'Country' OVER MODEL AS 'Model' ACROSS CNTCR AS '' NOPRINT ON TABLE PCHOLD FORMAT EXL2K END
However, as i mentioned earlier, my table has mixture of alphanumeric/numeric. Now, how do i include DEALER_COST/SALES in this technique.When i try using this, it appends with trailing zeros.Tried like
FDE/A12='DC';
VDE/A20=EDIT(DEALER_COST);
I couldn't completely understood sequential MFD.
My understandings, 1. Retrieve the original datas & hold it. 2. Second, using the known blank value(PARENT SEGMENT), you describe the sequential MFD respective to the original one.
Correct me, if i'm wrong?
Then, how do you interlinked 1st HOLD file with 2nd one? Because, 1st HOLD file has 7 columns including ROOT(Blank) & 2nd one has only 3 columns.
Waz,
I understood without knowing the Master file structure, we can't create the FSEQ.I've gone through OCCURS attribute in Help Doc, might need to look it again.We're gonna use SQLPASSTHRU though.
I never used MacGyver/FSEQ in my experience. It would be great, if anyone provide a little explanation or else refer me to a good article.
Thanks, Rifaz
-Rifaz
WebFOCUS 7.7.x and 8.x
Posts: 406 | Location: India | Registered: June 13, 2013
This is a MASTER for a variable length sequential file. There is a fixed part and a variable part. Here the fixed part is segment RIFAT. It has only 1 field ROOT. The variable part is the segment VALS. It has 2 real fields TR and VR. This segment OCCURS a variable number of times and WebFOCUS knows how to calculate how many times. Hence you can add as many pairs of titles and values as you want. The third field is a virtual one and holds the occurence number of each occurence. That is why I sort with it.
Regards,
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006