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     [SOLVED] Merging files causing a problem

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Merging files causing a problem
 Login/Join
 
Member
posted
Hi I have a requirement in which i need to burst report in on a sort field. please consider the following code
 
DEFINE FILE CAR
CAR_DETAILS/A100 = COUNTRY|' '|CAR|' '|MODEL|' '|BODYTYPE;
END
TABLE FILE CAR
PRINT
CAR_DETAILS
BY MODEL
ON TABLE HOLD AS MAIN1 FORMAT FOCUS
END
-RUN
DEFINE FILE MAIN1
CAR_NAM/A100 = 'HEADING';
END
TABLE FILE MAIN1
PRINT
CAR_NAM
-*HEAD1
BY MODEL
WHERE RECORDLIMIT EQ 1
ON TABLE HOLD AS HOLD1 FORMAT FOCUS
END
-RUN

TABLE FILE MAIN1
PRINT
CAR_DETAILS
BY MODEL
ON TABLE HOLD AS HOLD2 FORMAT FOCUS
END
DEFINE FILE MAIN1
TRAIL1/A100 = 'TRAILER';
END
TABLE FILE MAIN1
PRINT
TRAIL1
BY MODEL
WHERE RECORDLIMIT EQ 1
ON TABLE HOLD AS HOLD3 FORMAT FOCUS
END
-RUN
TABLE FILE HOLD1
PRINT
CAR_NAM 
BY MODEL
ON TABLE HOLD AS FINALHOLD FORMAT FOCUS
MORE
FILE HOLD2
MORE
FILE HOLD3
END
-RUN

TABLE FILE FINALHOLD
PRINT
CAR_NAM AS ''
BY MODEL NOPRINT
END
-RUN
 


there are a few constraints.
1) I have to merge the three files is for header, main report and trailer. I created separate hold files for them and merged them.
2) I want the header and trailer (mentioned as above) to be repeated as the sort field changes ie if for this example my model changes from SUV to MPV then the header and trailer should be repeated.
now the problem i am facing here is that I am getting the header and trailer after the value changes for the first time itself and then the header and trailer don't get repeated Frowner.

thanks in advance Smiler

Sid

This message has been edited. Last edited by: Kerry,


_________________________________________________________________

WF Server: 7.1.4 on Unix and Win2K3 server, ReportCaster, Self-Service, MRE, Java
Data: Teradata, Oracle, SQL Server Output: HTML,PDF,EXL2K, WP
WF Client: 7.1.4 on Windows 2K3 w/Tomcat
 
Posts: 27 | Registered: August 12, 2009Report This Post
Expert
posted Hide Post
If you are using MORE, make all the column names in ALL of the hold files the same name, either CAR_NAM or CAR_DETAILS, whichever. It might be helpful if you looked up the syntax and restrictions for this command.

Then create two extra sort fields for each model, one that gets incremented when the model changes, and a second inner one with lets say is a 9 in it for the trailer and a zero for the header, and you can choose whatever you want for the detail records. You would sort the final result by SORT1, SORT2, MODEL.

You rule the data; don't let it rule you. Smiler


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
the solution was pretty simple..
i had screwed up big time..
i removed the "where recordlimit.." and got the desired output..

Thanks a lot anyways..Smiler


_________________________________________________________________

WF Server: 7.1.4 on Unix and Win2K3 server, ReportCaster, Self-Service, MRE, Java
Data: Teradata, Oracle, SQL Server Output: HTML,PDF,EXL2K, WP
WF Client: 7.1.4 on Windows 2K3 w/Tomcat
 
Posts: 27 | Registered: August 12, 2009Report 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     [SOLVED] Merging files causing a problem

Copyright © 1996-2020 Information Builders