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.
Is there a setting that can be turned on that will make PRINT * print all fields including defined ones?
DEFINE FILE CAR
CAR_MODEL/A50 WITH SEATS = CAR || MODEL;
END
TABLE FILE CAR
PRINT *
END
Instead of
DEFINE FILE CAR
CAR_MODEL/A50 WITH SEATS = CAR || MODEL;
END
TABLE FILE CAR
PRINT *
CAR_MODEL
END
I am working on a report that has a whole lot of defined fields. Most of them are filler for a flat file that is created. When it comes time to create the flat file the code would be a lot simpler if i could just do a PRINT * to a HOLD file.
In other words, no. Prarie's idea is the quickest way to get a list of all your defines, in case there are a lot of them, to paste into your fex but a PRINT * simply selects all fields in the MFD. Now if you wanted to copy the defines from your fex into the MFD (ending each with a ,$) then I believe a PRINT * would get the DEFINEd fields as well.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
CHECK FILE &FILENAME HOLD
TABLE FILE HOLD
PRINT FIELDNAME USAGE
IF FIELDNAME NE ' '
ON TABLE SAVE AS SAVEXYZ
END
-RUN
TABLE FILE &FILENAME
PRINT
-READ SAVEXYZ &INLINE.A66. &USAGE.A8.
-REPEAT LOOP9XYZ WHILE &IORETURN EQ 0;
-SET &OUTLINE = TRUNCATE(&INLINE);
-SET &USAGE = TRUNCATE(&USAGE);
&OUTLINE AS '&OUTLINE,&USAGE'
-READ SAVEXYZ &INLINE.A66. &USAGE.A8.
-LOOP9XYZ
-CLOSE SAVEXYZ
END
I'm afraid that CHECK FILE ... HOLD does not save the DEFINE fields. So I think that Prarie has the idea. In M/F Focus one can redirect the messages, output, echo to a file but I haven't found how to do that in W/F.
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