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.
Get used to looking at the structure of HOLD files to help you through this type of question. You can use !TYPE HOLD1.MAS in your example to see the field names etc.
Then once you know that info then you can identify how to achieve what you need -
!TYPE HOLD1.MAS
TABLE FILE HOLD1
SUM COMPUTE BnD/I9 = E03 + E05;
E02 AS 'A'
E04 AS 'C'
E06 AS 'E'
BY E01
END
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
APP HOLD EXAMPLES -RUN ? PATH FILEDEF TESTDATA DISK C:\IBI\APPS\EXAMPLES\TESTDATA.TXT -RUN BASEAPP = C:\ibi\apps\baseapp; APPHOLD = C:\ibi\apps\examples; APPPATH = C:\ibi\apps\ibisamp; C:\ibi\apps\baseapp; C:\ibi\apps\examples; ? FILEDEF SET ASNAMES=ON TABLE FILE TESTDATA LIST T_GIFT BY T_ACCT BY HIGHEST T_DATE ON TABLE HOLD AS H1 END -RUN Lname Device Lrecl Recfm Append Filename ============================================================ TESTDATA DISK 0 V C:\IBI\APPS\EXAMPLES\TESTDATA. TXT 0 NUMBER OF RECORDS IN TABLE= 26 LINES= 26 !TYPE H1.MAS -EXIT The system cannot find the file specified.
But, when I ?FF H1, I get:
APP HOLD EXAMPLES -RUN ? PATH FILEDEF TESTDATA DISK C:\IBI\APPS\EXAMPLES\TESTDATA.TXT -RUN BASEAPP = C:\ibi\apps\baseapp; APPHOLD = C:\ibi\apps\examples; APPPATH = C:\ibi\apps\ibisamp; C:\ibi\apps\baseapp; C:\ibi\apps\examples; ? FILEDEF SET ASNAMES=ON TABLE FILE TESTDATA LIST T_GIFT BY T_ACCT BY HIGHEST T_DATE ON TABLE HOLD AS H1 END -RUN Lname Device Lrecl Recfm Append Filename ============================================================ TESTDATA DISK 0 V C:\IBI\APPS\EXAMPLES\TESTDATA. TXT 0 NUMBER OF RECORDS IN TABLE= 26 LINES= 26 ?FF H1 -EXIT
As has been mentioned before the plink "!" is the shorthand for a system command. In windoze you can use either ! or CMD and as such ! TYPE filename.mas would dump the contents of the .mas file to the "sysout". As a consequence you see much more than ?FF filename gives you.
At the end of the day, it's down to personal preference and the occasion. There are times that I use CMD TYPE filename.mas and others when I would use ?FF filename. In this instance I suggested ! TYPE or CMD TYPE to give more info about the structure of the hold file, that's all.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
TABLE FILE CAR
SUM RCOST
DCOST
BY COUNTRY
SUM RCOST
DCOST
BY COUNTRY
BY CAR
ON TABLE HOLD AS HOLD1
END
-RUN
?FF HOLD1
CMD TYPE HOLD1.MAS
! TYPE HOLD1.MAS