70 pts.
RPGLE files
I need to change primary and secondary file into full procedure file. Can anybody help me?

Software/Hardware used:

Answer Wiki

Thanks. We'll let you know when a new response is added.

Thanks for coming to ITKE

The simple answer is to tell you to change your F specs to “F”ull procedural and just code the I/O logic in your calc specs.

That being said, do you have any access to source code that uses this technique or do you have any experience with this type of processing?

If not, you really should take a class or purchase a book or two.

Once you get started on your project, and have specific questions, please come back and ask them.

Discuss This Question: 2  Replies

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • philpl1jb
    Without seeing the code there is no way of knowing the scope of this change. Contral break processing and O-spec output control might be linked directly to the primary and secondary files P/S specs. Primary file will need to be read in the main processing loop .. which probably didn't exist in the previous code.  Secondary files will need to be chained to at the appropriate times. To make this change you must understand how the program currently works.
    54,090 pointsBadges:
  • TomLiotta
    A 'P'rimary file will generally be replaced by a straight READ-loop around the main calculation specs. A 'S'econdary file, however, is going to require some thought.   Secondary file processing can also require READ-loops. There are often more secondary records for a given matching key value than there are primary records for the key. And there is consideration needed for missing primaries and missing secondaries, and for EOF against either file.   As Phil mentions, issues involving control breaks ('level' breaks) and O-spec output also must be considered. Output is likely going to need to be significantly restructured.   Overall, unless there is a strong reason for making the change, I would recommend against it. It should not be done if the only reason is to change the file processing modes. It has a reasonable chance of needing essentially a full rewrite of the program. In fact, I would start from that assumption.   Tom
    125,585 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: