CRTPGM and UPDPGM

1420 pts.
Tags:
AS/400
Hi all, I have a RPG Program module R1 which is having a CALL to another RPG module R2. Now i did some modifications only in R1, and after that created a module. Now when i try to create CL Program using CRTPGM, it is throwing error message "Program not created". same happened with the sue of UPDPGM also. Can any one suggest the precautions to take in this case so that i will suceed in Creation and Updation. Thanks!

Software/Hardware used:
AS400, RPG 400,CLLE,

Answer Wiki

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

Discuss This Question: 6  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
  • TomLiotta

    I have a RPG Program module R1 which is having a CALL to another RPG module R2.

    Modules do not call modules. A call is either to a program or a procedure.

    Now i did some modifications only in R1, and after that created a module.

    What changes? Did you create a new module or recreate the R1 module?

    Now when i try to create CL Program using CRTPGM, it is throwing error message "Program not created".

    Why? What was the error? What was the command that you ran?

    Can any one suggest the precautions to take in this case so that i will suceed in Creation and Updation.

    So far, all you have told us is that some error happened when you tried to create a program. You haven't told us anything about what any error was, so there is nothing we can tell you about how how to avoid it.

    We need to have actual error information even to start asking questions that might lead somewhere.

    Tom

    125,585 pointsBadges:
    report
  • philpl1jb

    There should be more error messages in the joblog.  Any number of errors could prevent you from doing these things.

    If you've changed one module, you can use UPDPGM to replace that module in the program. 

    If you want to recreate the program you must have all modules.

    49,600 pointsBadges:
    report
  • TomLiotta

    If you’ve changed one module, you can use UPDPGM to replace that module in the program.

    That depends on the change that was made. E.g., if a DLYJOB was replaced with a procedure call to sleep(), the creation requirements change. Without knowing the changes and original creation parameters, there's no way to know what must be done differently.

    Tom

    125,585 pointsBadges:
    report
  • Sai4AS400
    The error message is.. Program not Created for CRTPGM, and Program not Updated for UPDDTA. with respect to changes in R1,  earlier i am writing data to a Out file from one input file, now from two input files. i.e some data (fields) from old file and some data(fields) from new file. That all the changes.

    Thanks!

    1,420 pointsBadges:
    report
  • TomLiotta
    That's not the error mess age. It's a status message. It's the message that told you that an error happened. Now you need to look at the joblog to see what error was reported. -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    There should be more error messages in the joblog.  Any number of errors could prevent you from doing these things.
    49,600 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