Clearing the screen in RPG in AS/400?

350300 pts.
Tags:
AS/400
RPG
How does one clear the screen in RPG for AS/400? Is there something like
clrscr()
from C that I could use?

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: 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
  • philpl1jb

    No, clrscr(), Nothing like it.

    If you're working with display files, when you write the next screen it typically replaces the previous one.

    Perhaps you can tell us what's happening and what you want to occur.

     

    50,385 pointsBadges:
    report
  • ToddN2000
    Are you talking about clearing a subfile? Then use the SFLCLR in the DDS. If not, what are you looking to clear from the screen and after the clear what will the screen show?
    12,745 pointsBadges:
    report
  • TomLiotta

    A function very similar to clrscr() is available, but it's only meaningful if you're doing screen I/O similar to how C does it. And since clrscr() is not part of the C standard and supplied with only some C compilers through a non-standard library, i.e., conio.h, you can always create your own version.

    It would probably be better if you explained the need to show a totally blank screen through normal RPG. Screens are almost always blanked when displaying a new record unless you use options that force existing data to remain.

    If we knew more about why you need clrscr(), we might suggest simpler alternatives.

    Tom

    125,585 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