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     How to Table against a flat file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to Table against a flat file
 Login/Join
 
Master
posted
I am trying to create a simple report to capture all the REVIEWTYPEs (e.g., EKG, Cytology) within a medical department (MDDEPT; e.g., ANES, CARD, REHB).

I am capturing this data from a flat file with SEGTYPE=S0. Other than changing this MFD into a hierarchical layout, I have written a small table request to try to capture these procedures within their department.

Is there another way I can get this information in report with code? Sweating

The code and the current MFD are captioned below.

{
TABLE FILE PRIMETBLCASETRACKING
HEADING CENTER
" REVIEWTYPE BY MDDEPT
" FOR ECT "
" DATE: &DATEtrMDYY "
" "
SUM REVIEWTYPE
BY MDDEPT SKIP-LINE
BY REVIEWTYPE NOPRINT
-*ON MDDEPT SKIP-LINE
WHERE MDDEPT EQ 'ANES' OR 'CARD' OR 'CTSR' OR 'EMER' OR 'ENDO'
OR 'FMED' OR 'GILB' OR 'IMED' OR 'NEON' OR 'PATH'
OR 'PEDS' OR 'PSYC' OR 'PSYO' OR 'PULM' OR 'RADI'
OR 'RADO' OR 'REFF' OR 'REBH' OR 'SURG' OR 'VASC' OR 'WOMN';
WHERE REVIEWTYPE NE '.';
END
-RUN
}

Here is the Master File
{
FILENAME=PRIMETBLCASETRACKING, SUFFIX=EDA, $
SEGMENT=PRIMETBLCASETRACKING, SEGTYPE=S0, $
FIELDNAME=REVIEWER, ALIAS=REVIEWER, USAGE=I11, ACTUAL=I4,
MISSING=ON, $
FIELDNAME='CASE#', ALIAS='CASE#', USAGE=I11, ACTUAL=I4,
MISSING=ON, $
FIELDNAME='TRACK#', ALIAS='TRACK#', USAGE=I11, ACTUAL=I4, $
FIELDNAME=DATE_ASSIGNED, ALIAS=DATE_ASSIGNED, USAGE=HYYMDS, ACTUAL=HYYMDS, MISSING=ON,
TITLE='Date Assigned', $
FIELDNAME=PHYSICIAN, ALIAS=PHYSICIAN, USAGE=A50V, ACTUAL=A50V,
MISSING=ON, $
FIELDNAME=DATE_RETURNED, ALIAS=DATE_RETURNED, USAGE=HYYMDS, ACTUAL=HYYMDS, MISSING=ON, TITLE='Date Returned', $
FIELDNAME=NEVERRETURNED, ALIAS=NEVERRETURNED, USAGE=I11, ACTUAL=I4, $
FIELDNAME=RESENT, ALIAS=RESENT, USAGE=I11, ACTUAL=I4, $
FIELDNAME=NEVERRETURNEDOLD, ALIAS=NEVERRETURNEDOLD, USAGE=I11, ACTUAL=I4, $
FIELDNAME=REVIEWED, ALIAS=REVIEWED, USAGE=I11, ACTUAL=I4,
MISSING=ON, $
FIELDNAME=MDDEPT, ALIAS=MDDEPT, USAGE=A4V, ACTUAL=A4V,
MISSING=ON, $
FIELDNAME=REVIEWTYPE, ALIAS=REVIEWTYPE, USAGE=A20V, ACTUAL=A20V,
MISSING=ON, $
}

Thanks!


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Expert
posted Hide Post
A couple of suggestions:

1. As Tom Flynn suggested, change SUFFIX=EDA to SUFFIX=FIX, or is it comma-delimited?
2. Double-check the ACTUAL lengths. I am concerned about the V formats.
3. Either add a DATASET parameter to the master or a FILEDEF in the program to identify where the actual file resides.

Maybe you can post a row of your data as an example. Also indicate what error you are getting.


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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to Table against a flat file

Copyright © 1996-2020 Information Builders