rpg II

25 pts.
Tags:
RPG II program-defined disk output file
System 36
How do you compile a rpg II source program into a file on system 36 and converted the file back into a source program so that I can modify the program?

Answer Wiki

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

Something does not make sense with your question.
If you already have a source member, why do you need to compile it and then convert it back to a source member?
Can you give us more detail on exactly what you are trying to accomplish.

Discuss This Question: 8  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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Jaimi
    The source member is in a data file, there are 3,900 lines of code (records in the file) so I cannot rekey this into a source program. The first statement before the header statement (H spec) there is a line that reads // COPY Library-S, Name-ASN01, REF-000058,Date-03/04/29,Time-1123,SUBRPG. I do not know how to get the code out of the file into a program so a change can be made and recompile the memeber. I am thinking there must be a command that took the source and put it in a file, then the programmer deleted the source member for security reasons, but this is just a guess.
    25 pointsBadges:
    report
  • CharlieBrowne
    Try the CPYF command going from the file to a source member. Use FMTOPT(*CVTSRC)
    41,370 pointsBadges:
    report
  • TomLiotta
    Pure guesswork -- Is that an OCL batch copy to put the records into the S/36 source library? I don't have guide for S/36 OCL available. Because it starts with // COPY and the program statements follow, it looks as if it's intended to populate a source file. Tom
    125,585 pointsBadges:
    report
  • DanTheDane
    As I read your Q, its all about copying source-statements from PF to SRCPF and visa versa. If that's the case and we are talking S36, you'll need to use the $MAINT program. Look for this in this manual, and you'll (hopefully) have your solution: DanF
    2,555 pointsBadges:
    report
  • DanTheDane
    Ups.. I tried to use the editor's 'link', bu with no luck.. Here is the link: http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/books/sc414731.pdf DanF
    2,555 pointsBadges:
    report
  • Jaimi
    I will try the $MAINT idea on Monday when I return to work. The CPYF command is COPYDATA on the S36 and it did not have a FMTOPT parm, but thanks for the suggestion. I have emailed all my previous S36 contacts but they too have been out of that world for years. I just cannot figure out how someone put the source into a file. I did find a actual source member on their system but it is 5 yrs older than the object they are running, so I can not risk changing and compiling this one. It is a key program that creates their X12 ASNs.
    25 pointsBadges:
    report
  • Jaimi
    [...] Jaimi is trying to compile an RPG II source program into a file, and is still testing out some [...]
    0 pointsBadges:
    report
  • Jaimi
    [...] Jaimi is trying to compile an RPG II source program into a file, and is still testing out some [...]
    0 pointsBadges:
    report

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following