Lines 25 — I need to convert the character form of the page "number" to a real number. This allows me to identify the lines where there was an error.
Lines 30 — Doing the same as the previous Monitor group for the number of copies field. If your IBM i uses a different date format this will be different for you. The first time I run the RPG program I always debug the contents of the data structure to ensure that my sub fields all contain the data I need, and in the format I want.
As I said at the top of this article, this is not the way I would have got this data. I hope you now understand what you need to do to create your own programs to extract data from a spool file, and into your own data file. Still a very common and prevalent technique. Create it, compile it, delete it?
How will someone else recompile this if this is a production program? These were the types of situations where, dare I say it, program described files came in handy, but RPG-free does not support those anymore. Don't cringe Jon, read on ; Like it or not, flatfiles are used for all kinds of purposes. They are permanent objects but not intended to be written to. No mystery as in "where did this file come from and how did this compile"?
No record format rename needed either, it's defined in the ahem DDS. Field names are known and consistent i. I have a number of them with different widths so I can chose the best match. Writing 80 bytes to a byte flatfile slows down the writes and wastes DASD. Granted, I would do this particular exercise by hitting the system tables too, but my question is more about flatfiles and ad-hoc files in general and a proper solution for not having program described PFs anymore.
I've seen shops create program-specific flatfiles and they had thousands of them. Many were nearly identical in width.
That just clutters up the system with all these permanent objects. I ditched them all and pared it down to 10 model flatfiles. Curious what your thoughts are. This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website.
These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience. Necessary cookies are absolutely essential for the website to function properly.
This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information. This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Privacy Overview This website uses cookies to improve your experience while you navigate through the website.
Print Topic Switch to Threaded Mode. If it is possible, can you give me some instructions on it? CPF Cannot convert spooled file data. This parameter is considered after the job name, user convwrt, job number, spooled file name, spooled file number, and job system name parameter requirements have been met. If you have some sort of binary file, or non-readable PCL file, you will not be able to natively convert it to plain text, and may have to use an external program to do it.
The only valid values for this parameter are 1 through Specifies a list of channel numbers with their assigned line numbers. Objectif Lune, Montreal, Qc. Below are the options you have as far as converting to text goes: Other values up to 12 repetitions Element 1: The assigned channel values as specified on the command are as follows:. Graphics data is lost. Creation date date Specify the date the spooled file was created. The range of valid line numbers is 1 through Then I can based on the text files to design the form in planetpress design.
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent.
You also have the option to opt-out of these cookies.
0コメント