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     [CLOSED] STUCK ON MORE COMMAND

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] STUCK ON MORE COMMAND
 Login/Join
 
Master
posted
Simply want to append the contents of the first hold file to the second. Fields are of similar type. I can not seem to get the syntax right....Suggestions...

DEFINE FILE FIN_LVPG_PRD_GL_VW
CHGS/D12.2=0;
END

TABLE FILE FIN_LVPG_PRD_GL_VW
SUM FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.PRD_AMOUNT AS BADDEBT
CHGS
BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.FISCAL_YR AS FY
BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.MTH_KEY AS PERIOD
BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.LVPG_IDXBANBR AS BANBR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS HOLDBADDEBT FORMAT ALPHA
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
ENDSTYLE
END
DEFINE FILE TBLMSTR_CHGS
BADDEBT/D12.2=0;
END
TABLE FILE TBLMSTR_CHGS
SUM
BADDEBT
TBLMSTR_CHGS.TBLMSTR_CHGS.TTLCHGS AS CHGS
BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.FISCALYEAROFINVCREPD AS FY
BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.INVCREPD AS PERIOD
BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.RPTBANBR AS BANBR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS HOLDCHGS FORMAT ALPHA
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
ENDSTYLE
END

TABLE FILE HOLDBADDEBT
PRINT
FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.PRD_AMOUNT
CHGS
FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.FISCAL_YR
FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.MTH_KEY
FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.LVPG_IDXBANBR
ON TABLE HOLD
MORE
FILE HOLDCHGS
END

*errors out:
0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0
0 NUMBER OF RECORDS IN TABLE= 1339 LINES= 1339
0 ERROR AT OR NEAR LINE 44 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC003) THE FIELDNAME IS NOT RECOGNIZED:
FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.PRD_AMOUNT
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT



I tried using the the 'as' names...same error....

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8206.08
Windows, All Outputs
 
Posts: 603 | Registered: June 28, 2013Report This Post
Expert
posted Hide Post
When using the MORE command, all the fieldnames and formats MUST be the same.

You also cant use fully quallified field names.

Another option is to TABLE HOLD FORMAT ALPHA the first file, re-FILEDEF the HOLD FILE to APPEND mode, and TABLE SAVE the second file.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
ok wait...confused...I thought I had each HOLD file set up with the exact same names! By using 'As fldnm'.

I tried using something like this but it yeilded the error in the same spot...this time on BADDEPT..

TABLE FILE HOLDBADDEBT
SUM BADDEBT CHGS
BY FY PERIOD BANBR
MORE
FILE HOLDCHGS
.
.
.
errors out not recognizing BADDEBT...

Thanks Waz!


WebFOCUS 8206.08
Windows, All Outputs
 
Posts: 603 | Registered: June 28, 2013Report This Post
Guru
posted Hide Post
Are you using SET ASNAMES = ON and SET HOLDLIST = PRINTONLY?


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
Platinum Member
posted Hide Post
DEFINE FILE FIN_LVPG_PRD_GL_VW
CHGS/D12.2=0;
END

TABLE FILE FIN_LVPG_PRD_GL_VW
SUM FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.PRD_AMOUNT AS BADDEBT
CHGS
BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.FISCAL_YR AS FY
BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.MTH_KEY AS PERIOD
BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.LVPG_IDXBANBR AS BANBR

-***** ------------------------------------------------------- ****
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY
-***** ------------------------------------------------------- ****
ON TABLE HOLD AS HOLDBADDEBT FORMAT ALPHA
END

DEFINE FILE TBLMSTR_CHGS
BADDEBT/D12.2=0;
END
TABLE FILE TBLMSTR_CHGS
SUM 
BADDEBT
TBLMSTR_CHGS.TBLMSTR_CHGS.TTLCHGS AS CHGS
BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.FISCALYEAROFINVCREPD AS FY
BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.INVCREPD AS PERIOD
BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.RPTBANBR AS BANBR

-***** ------------------------------------------------------- ****
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY
-***** ------------------------------------------------------- ****
ON TABLE HOLD AS HOLDCHGS FORMAT ALPHA
END

TABLE FILE HOLDBADDEBT
PRINT
BADDEBT
CHGS
FY
PERIOD
BANBR
ON TABLE HOLD
MORE
FILE HOLDCHGS
END


WebFOCUS 8.2.06 mostly Windows Server
 
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008Report This Post
Master
posted Hide Post
THANKS!

So...
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY

I assume ASNAMES uses the names I assign...what does the HOLDLIST do? I will give it a go soon!


WebFOCUS 8206.08
Windows, All Outputs
 
Posts: 603 | Registered: June 28, 2013Report This Post
Master
posted Hide Post
btw, the code gets further..I now get a more helpfull error message:
0 ERROR AT OR NEAR LINE 47 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC957) FORMAT MISMATCH FOR THE FIELD: BADDEBT


When I hover over column: BADDEBT in my table, it is PACKED 20.2...I believe I just need to determine the syntax to change:

DEFINE FILE TBLMSTR_CHGS
BADDEBT/D20.2=0;

to a similar type....


WebFOCUS 8206.08
Windows, All Outputs
 
Posts: 603 | Registered: June 28, 2013Report This Post
Master
posted Hide Post
quote:
IP

Ignored post by RobertF posted January 09, 2014 08:56 AMShow Post

Powered by Social Strata



********CLOSED
all is working!


WebFOCUS 8206.08
Windows, All Outputs
 
Posts: 603 | Registered: June 28, 2013Report This Post
Expert
posted Hide Post
Hi Robert,

Can you edit your first post in this thread and add [CLOSED] to the title.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Hi @RobertF,

I generally include these commands when I create HOLD files. They work well for me as "defaults".

ON TABLE SET ASNAMES ON:
As you said - if you specify an "AS" name for a column, then the field in the HOLD file will have that name.

ON TABLE SET HOLDLIST PRINTONLY
This tells WebFOCUS to only write the columns that you would have seen on the report (e.g. if it was an online report) to the HOLD file.

For example, if your report uses "NOPRINT" or COMPUTE statements that refer to columns that aren't being printed, then the default would normally have been to write these "hidden" columns to the HOLD file.
This command overrides that default - so the "hidden" fields don't make their way to the HOLD file.


WebFOCUS 8.2.06 mostly Windows Server
 
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008Report 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     [CLOSED] STUCK ON MORE COMMAND

Copyright © 1996-2020 Information Builders