Error in execution programs batch with screen

45 pts.
Tags:
RPG
RPG ILE
I have a program RPG/ILE that has a screen, but an indicator is handled for when lot is executed the program in way does not appear the screen, but at the time of the execution the program by error in pnatalla for a program falls batc; as I can solve this disadvantage. Gracias

Answer Wiki

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

If I understand your question right, you are asking how to make a program with a display file work both interactively and in batch. Code the keyword UsrOpn on the display file definition line and use the Open and Close OpCodes to control when the display file is used:

DDisplay CF E WorkStn UsrOpn

/Free
If Interactive program;
Open Display;
Exsr InteractiveProcess;
Close Display;
Else;
Exsr BatchProcess;
EndIf;
/End-Free

Discuss This Question:  

 
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

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