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     [SOLVED] PCHOLD OPEN

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] PCHOLD OPEN
 Login/Join
 
Platinum Member
posted
So, I know you can do a statement like this:

ON TABLE PCHOLD FORMAT PDF OPEN

and append one pdf to another. Wondering if you can do that in a regular hold file so that I can use it later on in the program.

I'm trying to create a hold file that will contain all the dates in between two dates... so the output would basically have one field, called "DATE" that would have a record for each date in between two dates. My beginning date might be 20100205 and my ending date might be 20100210 and my hold file would look like this:

DATE
20100205
20100206
20100207
20100208
20100209
20100210

My original thought was to create a loop... incrementing a variable by one on each iteration and using that in the HADD function. Something like:

DEFINE FILE CAR
BEG1/HYYMDS WITH BODYTYPE = DT(&BEG1 00:00:00.000);
END1/HYYMDS = DT(&END1 00:00:00.000);
ADD_DAY/HYYMDS = HADD(BEG1, 'DAY', &MYVAR, 8, 'HYYMDS');
END

This message has been edited. Last edited by: Mark1,


Windows version 768
 
Posts: 215 | Registered: March 16, 2006Report This Post
Expert
posted Hide Post
Look up the (APPEND option on the APP FI or FILEDEF command. I think that is exactly what you want.

You can also use the MORE command, i.e. Universal Concatenation.


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
Virtuoso
posted Hide Post
quote:
Wondering if you can do that in a regular hold file so that I can use it later on in the program



That is not supported for a regular hold file. However, as Ginny mentions, you can FILEDEF a file with the (APPEND option. In this case, you could do everything you need with Dialogue Manager and you wouldn't even need to do a table file.


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
Virtuoso
posted Hide Post
Here is an example of using Dialogue Manager to build the hold file and master. As coded here, these files are temporary and will disappear at the end of the session unless you create them in a permanent location. If you need to generate more than 100 dates, then you would need to increase the -REPEAT limit to something greater than 100.

APP FILEDEF DATEMAS DISK datedata.mas
-RUN
-WRITE DATEMAS FILENAME=DATEDATA,SUFFIX=FIX
-WRITE DATEMAS SEGNAME=DATEDATA,SEGTYPE=S0
-WRITE DATEMAS FIELDNAME=DATEVAL ,ALIAS=DATEVAL ,FORMAT=YYMD, ACTUAL=A8,$
-*
APP FI DATEDATA DISK datedata.ftm
-RUN
-SET &START_DATE = '20100205';
-SET &END_DATE   = '20100210';
-*
-REPEAT ENDREPEAT1 FOR &I FROM 0 TO 100
-SET &DATEVAL = AYMD(&START_DATE,&I,'I8');
-WRITE DATEDATA &DATEVAL
-IF &DATEVAL EQ &END_DATE GOTO QUITREPEAT1 ;
-ENDREPEAT1
-QUITREPEAT1
-RUN
-*
TABLE FILE DATEDATA
 PRINT DATEVAL
END

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Platinum Member
posted Hide Post
This is what I needed. Thanks for the help!


Windows version 768
 
Posts: 215 | Registered: March 16, 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     [SOLVED] PCHOLD OPEN

Copyright © 1996-2020 Information Builders