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] Heading in Fix Format (Alpha)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Heading in Fix Format (Alpha)
 Login/Join
 
Gold member
posted
Hello,

I'm looking to automate this process so I do not have to manually update the file and ftp it.

We have this file in fix format(alpha) that we include the Master file on top of the data. Currently I would cut and paste the master to the file then ftp. The other group prefer fix format and we cannot change the format. Can we add headers to Alpha format?

File looks like this:
#ofrecordsFILE=HOLD ,SUFFIX=FIX
SEGNAME=HOLD ,SEGTYPE=S0
FIELDNAME =UPDATE_DATE ,E01 ,A10 ,A10 ,$
FIELDNAME =REPORT_DATE ,E02 ,A10 ,A10 ,$
FIELDNAME =SUMDIV ,E03 ,A5 ,A05 ,$
FIELDNAME =SUMDIV_NAME ,E04 ,A31 ,A31 ,$
FIELDNAME =DIVISION ,E05 ,A5 ,A05 ,$
FIELDNAME =DIVISION_NAME ,E06 ,A31 ,A31 ,$
FIELDNAME =DISTRICT ,E07 ,A5 ,A05 ,$
FIELDNAME =DISTRICT_NAME ,E08 ,A31 ,A31 ,$
FIELDNAME =AREA ,E09 ,A5 ,A05 ,$
FIELDNAME =AREA_NAME ,E10 ,A31 ,A31 ,$
FIELDNAME =TOP_BRANCH ,E11 ,A5 ,A05 ,$
FIELDNAME =TOP_BRANCH_NAME ,E12 ,A31 ,A31 ,$
FIELDNAME =BRANCH ,E13 ,A4 ,A04 ,$
FIELDNAME =BRANCH_NAME ,E14 ,A31 ,A31 ,$
20110803 201107 SUM SUM OF DIVISIONS DIVISON DIVISION_NAME DISTRICT DISTRICT_NAMET AREA AREA_NAME TOP_BRANCH TOP_BRANCH_NAME BRANCH BRANCH NAME
20110803 201107 SUM SUM OF DIVISIONS DIVISON DIVISION_NAME DISTRICT DISTRICT_NAMET AREA AREA_NAME TOP_BRANCH TOP_BRANCH_NAME BRANCH BRANCH NAME
20110803 201107 SUM SUM OF DIVISIONS DIVISON DIVISION_NAME DISTRICT DISTRICT_NAMET AREA AREA_NAME TOP_BRANCH TOP_BRANCH_NAME BRANCH BRANCH NAME
20110803 201107 SUM SUM OF DIVISIONS DIVISON DIVISION_NAME DISTRICT DISTRICT_NAMET AREA AREA_NAME TOP_BRANCH TOP_BRANCH_NAME BRANCH BRANCH NAME

Code:

TABLE FILE BOD2011
HEADING
""SEGNAME=HOLD ,SEGTYPE=S0"
"FIELDNAME =UPDATE_DATE ,E01 ,A10 ,A10 ,$"
SUM BRANCH_NAME
BY UPDATE_DATE BY REPORT_DATE
BY SUMDIV BY SUMDIV_NAME
BY DIVISION BY DIVISION_NAME
BY DISTRICT BY DISTRICT_NAME
BY AREA BY AREA_NAME
BY TOP_BRANCH BY TOP_BRANCH_NAME
BY BRANCH
ON TABLE PCHOLD FORMAT ALPHA
END

Any assistant would be great

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


WF 8105M
- Portal, Dashboard
- Rcaster, Data Migrator
- Windows 2012 Client Server
- Dev/App Studio 8105
- Data: SQL, Oracle, Neteeza,MVS
 
Posts: 78 | Registered: October 24, 2006Report This Post
Expert
posted Hide Post
TABLE FILE BOD2011
HEADING
""SEGNAME=HOLD ,SEGTYPE=S0"
"FIELDNAME =UPDATE_DATE ,E01 ,A10 ,A10 ,$"
SUM BRANCH_NAME
BY UPDATE_DATE BY REPORT_DATE
BY SUMDIV BY SUMDIV_NAME
BY DIVISION BY DIVISION_NAME
BY DISTRICT BY DISTRICT_NAME
BY AREA BY AREA_NAME
BY TOP_BRANCH BY TOP_BRANCH_NAME
BY BRANCH
ON TABLE PCHOLD FORMAT ALPHA
END
Are you asking if the heading can be displayed in "fix format", such as Courier? If so, add the "FONT=(font face) to your stylesheet.

Also, remove the 2nd (of three) double quotes in HEADING LINE 1.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Gold member
posted Hide Post
Yes I'm asking if header can display in fix format


WF 8105M
- Portal, Dashboard
- Rcaster, Data Migrator
- Windows 2012 Client Server
- Dev/App Studio 8105
- Data: SQL, Oracle, Neteeza,MVS
 
Posts: 78 | Registered: October 24, 2006Report This Post
<FreSte>
posted
Hi,

What I understand from your post is that you want to add the complete master file (of the created datafile) to the datafile itself before sending.
If that's the case, you could do something like this:

-Fred-

-* --------------------------------------------------------------------
-* Create report with data
-* --------------------------------------------------------------------
TABLE FILE CAR
  SUM
    DEALER_COST
  BY COUNTRY
  BY CAR
  BY MODEL
  BY SEATS
  ON TABLE HOLD AS DATAFILE FORMAT ALPHA
END
-RUN

-* --------------------------------------------------------------------
-* Write master for master-info
-* --------------------------------------------------------------------
APP FI MASTFILE DISK MASTFILE.MAS
-RUN
-WRITE MASTFILE SEGMENT=MASTFILE, SEGTYPE=S0, $
-WRITE MASTFILE  FIELDNAME=LINE     ,E01 ,A100     ,ACTUAL=A100 ,$


-* --------------------------------------------------------------------
-* Filedef for reporting on master file
-* --------------------------------------------------------------------
FILEDEF MASTFILE DISK DATAFILE.MAS
-RUN


-* --------------------------------------------------------------------
-* Create mixed file
-* --------------------------------------------------------------------
APP FI FILE2FTP DISK FILE2FTP.MAS (APPEND
-RUN

TABLE FILE MASTFILE
  PRINT *
  ON TABLE SAVE AS FILE2FTP FORMAT ALPHA
END
-RUN
TABLE FILE DATAFILE
  PRINT *
  ON TABLE SAVE AS FILE2FTP FORMAT ALPHA
END
-RUN

-* --------------------------------------------------------------------
-* Check file FILE2FTP (just for debugging)
-* --------------------------------------------------------------------
-HTMLFORM BEGIN
<html>
<pre>
!IBI.FIL.FILE2FTP;
</pre>
</html>
-HTMLFORM END
 
Report This Post
Gold member
posted Hide Post
Thanks Fred!! I'll give that a try.


WF 8105M
- Portal, Dashboard
- Rcaster, Data Migrator
- Windows 2012 Client Server
- Dev/App Studio 8105
- Data: SQL, Oracle, Neteeza,MVS
 
Posts: 78 | Registered: October 24, 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     [CLOSED] Heading in Fix Format (Alpha)

Copyright © 1996-2020 Information Builders