Skip to main content

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

Here is a link to the documentation about the runtime configuration file and variables - http://bit.ly/2rnejlo

Here is a very simple program that creates a PDF file - http://simp.ly/p/rwLK5R

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

Thanks!! I'll try it out and let you know the result.

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

Thanks!! I'll try it out and let you know the result.

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

Hi MTurner,

I tried to run your program on my HP-UX server but it is unable to produce any pdf file. Nothing happened after running the program. Do you know the cause?

Below is the program I wrote based on the one you provide but it still cannot produce pdf file.

IDENTIFICATION DIVISION.
PROGRAM-ID. printpdf.

ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SPECIAL-NAMES.

INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT PRINT-FILE
ASSIGN TO "-P PDF report.pdf"
FILE STATUS IS PRINT-STATUS.

DATA DIVISION.
FILE SECTION.
FD PRINT-FILE.
01 PRINT-REC PIC X(300).

WORKING-STORAGE SECTION.
77 PRINT-STATUS PIC X(02).
01 PRINT-TEST PIC X(10) VALUE 'print test'.

********************************************************************
PROCEDURE DIVISION.

DECLARATIVES.

END DECLARATIVES.

********************************************************************
MAIN-LOGIC.

OPEN OUTPUT PRINT-FILE.
WRITE PRINT-REC FROM PRINT-TEST.
CLOSE PRINT-FILE.

STOP RUN.

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

I ran your program here and it works fine so that's not the issue. It's possible that you don't have the correct permissions so the PDF can't be written to the directory.

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

I also tried this program on a Linux-server and I get a file-error 30:
*==========================================
| |
| File error 30,32 on PDF /tmp/PRINT.PDF |
| COBOL error at 00002B in TESTPDF |
| |
| <Ok> |
| |
------------------------------------------
TESTPDF.new: size: 560 (230), v10.0, RM-mode, tables checked, debug (08-Jun-201
7 12:50:13)
ccbl -o ../object/TESTPDF.new -e /WERK/list/TESTPDF.new -Cr -C51 -Zr1 -Ds -V
q -Za -Tf 6 -Te 200 -Gd -Sp /ontw/versnew/ritsel/source:/ontw/versnew

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

Are you using 10.1 runtime?

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

yes

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

30/32 for Linux is a broken pipe error. Have you tried the example Martin sent, compile and execute it in the acu bin directory? I tried all of your compile options on a Linux server with 10.1 and I was able to get the pdf created.

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

The program works fine now. Thank you so much for your help. Do you happen to know how to produce the output in a specific path?

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

I put the testprogram in the acu/bin directory. Still not working. I started the program in debug-mode. The open-file gives an error that a bin/sh command is not found.

           ASSIGN TO PRINT ws-printer                                      

           ORGANIZATION IS LINE SEQUENTIAL                                

           FILE STATUS IS PRINT-STATUS.                                    

       data division.                                                      

       file section.                                                      

       FD print-file.                                                      

       01 print-rec                 pic x(200).                            

       working-storage section.                                            

       01 WS-PRINTER           PIC X(51) VALUE spaces.                    

       01 PRINT-STATUS         PIC X(02).                                  

       procedure division.                                                

       DECLARATIVES.                                                      

       END DECLARATIVES.                                                  

       main-logic.                                                        

           move "-p pdf PRINT.PDF" to ws-printer                          

           open output print-file                                          

@           move "Test Print" to print-rec                                  

           write print-rec                                                

           close print-file                                                

           stop run.                                                      

<<EOF>>                                                                    

------------------------- Micro Focus extend Debugger ----------------------

Running all threads                                                        

TESTPDF 000005: S                                                          

TESTPDF 00000D: S                                                          

TESTPDF 000018: /bin/sh: pdf: command not found                            


Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

Are you using a shared library runtime? If so, can you confirm that LD_LIBRARY_PATH is pointing to the 10.1 lib directory.

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

You should be able to use a specific path as long as permissions are correct. I was just trying to see if permissions on the /tmp directory were what was causing the issue.

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

I did a web search and found this: you may be missing a symbolic link from /bin to /usr/bin. Can you try ln -s /usr/bin /bin
and see if the error still occurs

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

Sorry to jump into your conversation but the error says there is no command "pdf" in /bin/sh and to my knowledge this is correct. Another idea: is the extension case-sensitive ?

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

we don't use a shared library. However we have made our own runtime by linking several C-programs and the COBOL-runtime into our own RUNTIME. And our own runtime is not in the same directory as the original runtime.

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

The 10.1.0 Runtime should only be relinked using the Makefile that is included in that installation (lib directory). PDF_LIB is a new entry in the 10.1.0 Makefile. You should take the new Makefile and modify that one to include your other libraries.


Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

I think I found the problem. We are using version 10.0.1. instead of 10.1.0.

Hi,

 

I would like to print a pdf file using the new enhancement of ACUCOBOL-GT. In the documentation, it mentioned "

In the documentation, it mentioned, "Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename". 

Where can I find the runtime configuration file? And how exactly can I get it to generate pdf file?

 

Any help I can get is very appreciated. Thanks!

correction. We use 10.0.1 So I first must do an upgrade