Focal Point
Blank line at the top of my output

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6761072882

June 17, 2008, 05:07 PM
Don Robison
Blank line at the top of my output
I am trying to create a pipe delimited text file and everything looks fine except
1). THE blank line at the top of the output.
2). The 2 blank at the start of every line

What i have tried is I think everything that i could find in the Forum under:
Results for: blank line at the top of a report

-*********************************************************************
-* *
-*********************************************************************
TABLE FILE FAR00004
PRINT
OUTPUT_RECORD AS ''
ON TABLE SET SPACES 0
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE NOTOTAL
-*ON TABLE SAVE AS &RPT8 FORMAT WP
ON TABLE PCHOLD AS XXXXXXXX FORMAT WP
END
-RUN
-EXIT

0.00|36|03/04/2008|01/28/2008|1011491888-1-1|INSURED| |01/25/2008|50.00|01/25/2008|FREDERICK MAHONEY|15.00|||2|1,000.00|YES|03/04/2008|01/28/2008|ANDREA DISMONT|SANTA FE MAZDA|06|2008|NM|NM|5.00|NONDRIVEABLE|H12084822-1|814.43

Any help would greatly appreciated
Don R.


Version 7.17
June 17, 2008, 05:19 PM
Darin Lee
try ON TABLE PCHOLD FORMAT ALPHA
creates a .txt file that contains exactly what you've specified with no formatting.

Format WP does all sorts of little tricks to try and make it presentable in word processor format.


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
June 17, 2008, 05:56 PM
dhagen
If you don't have to use the PCHOLD thing, then use:

TABLE FILE CAR
PRINT
     COUNTRY
     CAR
     MODEL
ON TABLE NOTOTAL
ON TABLE HOLD FORMAT DFIX DELIMITER |
END  



"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
June 18, 2008, 08:54 AM
Don Robison
quote:
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
ON TABLE NOTOTAL
ON TABLE HOLD FORMAT DFIX DELIMITER |
END


This gives me an error.
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
ON TABLE NOTOTAL
ON TABLE HOLD FORMAT DFIX DELIMITER |
END
0 ERROR AT OR NEAR LINE 8 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC160) THE OPTION AFTER THE WORD 'FORMAT' IS INVALID: DELIMITER
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT
(FOC009) INCOMPLETE REQUEST STATEMENT


What i really trying to do is
I have blank line at the top of my hold file.
I also have two blank at the beging of each line that i would like to remove.


Version 7.17
June 18, 2008, 09:22 AM
Waz
Have you tried NOLEAD instead of NOPAGE ?


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!

June 18, 2008, 12:18 PM
Darin Lee
Did you change the format to something other than WP? WP holds as a report format (with page breaks, spacing at the top and bottom, etc.) NOT a record format. Change it to format ALPHA.


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
June 18, 2008, 12:21 PM
Leah
I agree try Format ALPHA.


Leah
June 18, 2008, 01:10 PM
Don Robison
That worked.
Thanks for the help
Don R.


Version 7.17
June 18, 2008, 02:51 PM
dhagen
quote:
Originally posted by dhagen:
If you don't have to use the PCHOLD thing, then use:

TABLE FILE CAR
PRINT
     COUNTRY
     CAR
     MODEL
ON TABLE NOTOTAL
ON TABLE HOLD FORMAT DFIX DELIMITER |
END  


Sorry ... must be a 7.6 option. Works just fine for me.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
June 23, 2008, 10:40 AM
cburtt
Try this:
  
DEFINE FILE CAR
  PIPE/A1 = '|';
END 
TABLE FILE CAR
  PRINT
    COUNTRY PIPE
    CAR PIPE
    MODEL
  ON TABLE PCHOLD FORMAT ALPHA
END



WIN/2K running WF 7.6.4
Development via DevStudio 7.6.4, MRE, TextEditor.
Data is Oracle, MS-SQL.