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     PRINT * and Defined Fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
PRINT * and Defined Fields
 Login/Join
 
Guru
posted
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.


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Virtuoso
posted Hide Post
You could put a ? DEFINE after your defines...without the table...and get a list of them all...then cut and paste. Someone may have a better idea.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
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, 2007Report This Post
Master
posted Hide Post
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


Works and will include defines but is complex.

Personally would like

PRINT D* (all incl defines)

PRINT DSEG. (segment all incl defines)

PRINT HDSEG. (prints segment + segments above in hierarchy incl defines)

But that would be in heaven only I think!



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
Virtuoso
posted Hide Post
John,

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, 2006Report This Post
Master
posted Hide Post
Daniel

Yes you're right it only does the defines in the master. (which * also does not print)

Also checked SYSCOLUM and not in there either.

Does SM (session monitor) still work? You could record the output of ? DEFINE to a file that way.

Regards

John



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
Virtuoso
posted Hide Post
John,

Alas, SM is M/F... It was great!


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, 2006Report This Post
Guru
posted Hide Post
Thanks for all the info.
I went ahead and used Prarie's method of cut and paste using ? DEFINE.
It was the simplest solution that I could understand.


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Virtuoso
posted Hide Post
Whatever works! Wink


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report 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     PRINT * and Defined Fields

Copyright © 1996-2020 Information Builders