Run the program after sending it to bach

35 pts.
Tags:
RPG
RPG Programming
RPG Programs
Hi , want to ask , i create a simple rpg program then compiled it It says that it is sent to the bach . How i can run the program? Thx
ASKED: June 26, 2009  5:41 PM
UPDATED: June 29, 2009  3:03 PM

Answer Wiki

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

Type <ul>
CALL MYLIB/MYPGM </ul>

on the command line and press enter.

——————————————-
The message sent to batch occurs when you type 14 – compile program.
Check your messages DSPMSG or view the Spool File DSPSPLF and determine if the compile was successful.
If not successful – fix and recompile.

If successful either

CALL MYLIB/MYPGM <– runs interactively
or
SBMJOB CMD(Call MYLIB/MYPGM) <– runs in batch

Phil

—————————
The message tells you that the compile failed – you need to look at the spool file created.
Near the bottom will be a report of the number of errors, above that are the list of errors…
RNAxxxx you are interested in errors with severety => 20. Search on each error # to find more info.
Fix and recompile.

Phil

Discuss This Question: 3  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
  • NA
    Hi all, what this error mean Message ID . . . . . . : RNS9308 Date sent . . . . . . : 06/26/09 Time sent . . . . . . : 23:55:17 Message . . . . : Compilation stopped. Severity 40 errors found in program. Cause . . . . . : The RPG compiler found at least one error in the program of severity greater than that specified in the GENLVL option on the CRTRPGMOD or CRTBNDRPG command. Recovery . . . : Correct the errors in the program. Compile again. thx
    35 pointsBadges:
    report
  • Mohan K
    If you get any 40 error then you have to look for files all the files mentioned in F spec should be in your library list. check the library list and try once again. if you dont want to run your program in BATCH then try to change defaults by F18 function key and enter 'N' for the below option. Run in batch . . . . . . . . N
    695 pointsBadges:
    report
  • graybeard52
    Make you life easier. Instead of SEU, use the RSE editor included with WDSC. You can click "verify" and it will list any errors that will happen at compile time, and even highlight the statement where the error occurs.
    3,115 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