How to remove the previous window when displaying new window in AS4002019 Community Moderator ElectionError when connecting to AS400 (ISeries)Why does READC operation take the previously selected value in a single selection list made by single page subfile?PHP DB2_Connect issue to AS400 on Windows 7How to use CHGDTA in CL Programming ? (as400)Decimal Fields displays negative on windows from IBM AS400Connection timed out when calling java program from AS400SQL Statement to select row where previous row status = 'C' AS400How to get authentication for /QNTC/windows Share drive IP in AS400?'@' displays differently in two different ibm servers(AS400)How to set printing tray / drawer in as400?

What has been your most complicated TikZ drawing?

Does the statement `int val = (++i > ++j) ? ++i : ++j;` invoke undefined behavior?

How Did the Space Junk Stay in Orbit in Wall-E?

Could the Saturn V actually have launched astronauts around Venus?

Make a transparent 448*448 image

What is the greatest age difference between a married couple in Tanach?

How to explain that I do not want to visit a country due to personal safety concern?

How to deal with taxi scam when on vacation?

Meaning of "SEVERA INDEOVI VAS" from 3rd Century slab

It's a yearly task, alright

Bash: What does "masking return values" mean?

Why do Australian milk farmers need to protest supermarkets' milk price?

Why did it take so long to abandon sail after steamships were demonstrated?

Schematic conventions for different supply rails

How to make healing in an exploration game interesting

How to generate globally unique ids for different tables of the same database?

Is it true that real estate prices mainly go up?

Be in awe of my brilliance!

Life insurance that covers only simultaneous/dual deaths

Have researchers managed to "reverse time"? If so, what does that mean for physics?

Bash replace string at multiple places in a file from command line

Co-worker team leader wants to inject his friend's awful software into our development. What should I say to our common boss?

PTIJ: Who should pay for Uber rides: the child or the parent?

Professor being mistaken for a grad student



How to remove the previous window when displaying new window in AS400



2019 Community Moderator ElectionError when connecting to AS400 (ISeries)Why does READC operation take the previously selected value in a single selection list made by single page subfile?PHP DB2_Connect issue to AS400 on Windows 7How to use CHGDTA in CL Programming ? (as400)Decimal Fields displays negative on windows from IBM AS400Connection timed out when calling java program from AS400SQL Statement to select row where previous row status = 'C' AS400How to get authentication for /QNTC/windows Share drive IP in AS400?'@' displays differently in two different ibm servers(AS400)How to set printing tray / drawer in as400?










2















I am trying to display windows from different display files. Even after providing the RMVWDW, The new window is getting overlapped on the previous window. Does the RMVWDW works when the windows are getting displayed from multiple display files?
What is the solution to remove the previous window when displaying new window when windows getting displayed from different display files?










share|improve this question
























  • Can you give us a screen shot of what you are seeing?

    – jmarkmurphy
    Mar 6 at 14:15






  • 2





    there is a distinct possibility you are going at this the wrong way. Please let us know the real goal rather than the way you want to do it. Screen shots will help immensely. Also, cut and paste into the question, the DDS for the window record you are trying to display.

    – jmarkmurphy
    Mar 6 at 17:57















2















I am trying to display windows from different display files. Even after providing the RMVWDW, The new window is getting overlapped on the previous window. Does the RMVWDW works when the windows are getting displayed from multiple display files?
What is the solution to remove the previous window when displaying new window when windows getting displayed from different display files?










share|improve this question
























  • Can you give us a screen shot of what you are seeing?

    – jmarkmurphy
    Mar 6 at 14:15






  • 2





    there is a distinct possibility you are going at this the wrong way. Please let us know the real goal rather than the way you want to do it. Screen shots will help immensely. Also, cut and paste into the question, the DDS for the window record you are trying to display.

    – jmarkmurphy
    Mar 6 at 17:57













2












2








2








I am trying to display windows from different display files. Even after providing the RMVWDW, The new window is getting overlapped on the previous window. Does the RMVWDW works when the windows are getting displayed from multiple display files?
What is the solution to remove the previous window when displaying new window when windows getting displayed from different display files?










share|improve this question
















I am trying to display windows from different display files. Even after providing the RMVWDW, The new window is getting overlapped on the previous window. Does the RMVWDW works when the windows are getting displayed from multiple display files?
What is the solution to remove the previous window when displaying new window when windows getting displayed from different display files?







ibm-midrange






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 6 at 11:48







Susmitha

















asked Mar 6 at 11:24









SusmithaSusmitha

438




438












  • Can you give us a screen shot of what you are seeing?

    – jmarkmurphy
    Mar 6 at 14:15






  • 2





    there is a distinct possibility you are going at this the wrong way. Please let us know the real goal rather than the way you want to do it. Screen shots will help immensely. Also, cut and paste into the question, the DDS for the window record you are trying to display.

    – jmarkmurphy
    Mar 6 at 17:57

















  • Can you give us a screen shot of what you are seeing?

    – jmarkmurphy
    Mar 6 at 14:15






  • 2





    there is a distinct possibility you are going at this the wrong way. Please let us know the real goal rather than the way you want to do it. Screen shots will help immensely. Also, cut and paste into the question, the DDS for the window record you are trying to display.

    – jmarkmurphy
    Mar 6 at 17:57
















Can you give us a screen shot of what you are seeing?

– jmarkmurphy
Mar 6 at 14:15





Can you give us a screen shot of what you are seeing?

– jmarkmurphy
Mar 6 at 14:15




2




2





there is a distinct possibility you are going at this the wrong way. Please let us know the real goal rather than the way you want to do it. Screen shots will help immensely. Also, cut and paste into the question, the DDS for the window record you are trying to display.

– jmarkmurphy
Mar 6 at 17:57





there is a distinct possibility you are going at this the wrong way. Please let us know the real goal rather than the way you want to do it. Screen shots will help immensely. Also, cut and paste into the question, the DDS for the window record you are trying to display.

– jmarkmurphy
Mar 6 at 17:57












1 Answer
1






active

oldest

votes


















4














So without any better description of the problem, let me try to describe what is going on. I wrote a few minimal programs to help.



First we have a display file with simply a full screen record, and a window. The window will overlay the full screen record.



DSPF1



 A R RECORD1
A 3 19'Base display record'
A 20 18'Base Display Record'
A R W01 WINDOW(7 15 10 50)
A 5 14'Window in DSPF1'


The associated program PGM1



**free
dcl-f dspf1 workstn;

dcl-pr pgm2 ExtPgm('PGM2');
end-pr;

write record1;
exfmt w01;

pgm2();

*inlr = *On;
return;


displays both record1 and w01, and waits for a command key to be pressed. Note both records on the display.



PGM1 Display



The user presses enter and PGM2 is called. Following is the source for the display file and program. Notice the ASSUME keyword in the display file source. This prevents the previous display file from being erased from the display when this display file is opened.



DSPF2



 A R W02 WINDOW(9 20 10 50)
A RMVWDW
A 5 14'Window 1 from DSPF2'
A R W03 WINDOW(4 5 10 50)
A RMVWDW
A 5 14'Window 2 from DSPF2'
A R DUMMY ASSUME
A OVERLAY
A 1 2' '


Program for DSPF2 is PGM2.



**free
dcl-f dspf2 workstn ignore(dummy);

exfmt w02;

exfmt w03;

*inlr = *On;
return;


This will display the first window in DSPF2, wait for a command key press, then remove the first window from DSPF2 and display the second window fron DSPF2.



Window 1 in DSPF2



When you press enter you get:



Window 2 in DSPF2



Enter again to end both programs.



Notice that the window from DSPF1 is not removed by PGM2. The ASSUME keyword keeps the display from PGM1 while DSPF2 is open. DSPF1 is suspended while DSPF2 is active, so you can't remove that window while DSPF2 is active unless you omit the ASSUME keyword from DSPF2. But if you omit the ASSUME keyword, the entire display is erased when DSPF2 is opened.



I suppose you might be able to remove the window from DSPF1 if you rewrote the screen without the window just before calling program 2, but you would have to set DFRWRT(*NO) on DSPF1, or the write will not be sufficient to update the screen.






share|improve this answer

























  • This is the exact scenario I am facing. I will try with the provided solution.

    – Susmitha
    Mar 7 at 12:27










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021944%2fhow-to-remove-the-previous-window-when-displaying-new-window-in-as400%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














So without any better description of the problem, let me try to describe what is going on. I wrote a few minimal programs to help.



First we have a display file with simply a full screen record, and a window. The window will overlay the full screen record.



DSPF1



 A R RECORD1
A 3 19'Base display record'
A 20 18'Base Display Record'
A R W01 WINDOW(7 15 10 50)
A 5 14'Window in DSPF1'


The associated program PGM1



**free
dcl-f dspf1 workstn;

dcl-pr pgm2 ExtPgm('PGM2');
end-pr;

write record1;
exfmt w01;

pgm2();

*inlr = *On;
return;


displays both record1 and w01, and waits for a command key to be pressed. Note both records on the display.



PGM1 Display



The user presses enter and PGM2 is called. Following is the source for the display file and program. Notice the ASSUME keyword in the display file source. This prevents the previous display file from being erased from the display when this display file is opened.



DSPF2



 A R W02 WINDOW(9 20 10 50)
A RMVWDW
A 5 14'Window 1 from DSPF2'
A R W03 WINDOW(4 5 10 50)
A RMVWDW
A 5 14'Window 2 from DSPF2'
A R DUMMY ASSUME
A OVERLAY
A 1 2' '


Program for DSPF2 is PGM2.



**free
dcl-f dspf2 workstn ignore(dummy);

exfmt w02;

exfmt w03;

*inlr = *On;
return;


This will display the first window in DSPF2, wait for a command key press, then remove the first window from DSPF2 and display the second window fron DSPF2.



Window 1 in DSPF2



When you press enter you get:



Window 2 in DSPF2



Enter again to end both programs.



Notice that the window from DSPF1 is not removed by PGM2. The ASSUME keyword keeps the display from PGM1 while DSPF2 is open. DSPF1 is suspended while DSPF2 is active, so you can't remove that window while DSPF2 is active unless you omit the ASSUME keyword from DSPF2. But if you omit the ASSUME keyword, the entire display is erased when DSPF2 is opened.



I suppose you might be able to remove the window from DSPF1 if you rewrote the screen without the window just before calling program 2, but you would have to set DFRWRT(*NO) on DSPF1, or the write will not be sufficient to update the screen.






share|improve this answer

























  • This is the exact scenario I am facing. I will try with the provided solution.

    – Susmitha
    Mar 7 at 12:27















4














So without any better description of the problem, let me try to describe what is going on. I wrote a few minimal programs to help.



First we have a display file with simply a full screen record, and a window. The window will overlay the full screen record.



DSPF1



 A R RECORD1
A 3 19'Base display record'
A 20 18'Base Display Record'
A R W01 WINDOW(7 15 10 50)
A 5 14'Window in DSPF1'


The associated program PGM1



**free
dcl-f dspf1 workstn;

dcl-pr pgm2 ExtPgm('PGM2');
end-pr;

write record1;
exfmt w01;

pgm2();

*inlr = *On;
return;


displays both record1 and w01, and waits for a command key to be pressed. Note both records on the display.



PGM1 Display



The user presses enter and PGM2 is called. Following is the source for the display file and program. Notice the ASSUME keyword in the display file source. This prevents the previous display file from being erased from the display when this display file is opened.



DSPF2



 A R W02 WINDOW(9 20 10 50)
A RMVWDW
A 5 14'Window 1 from DSPF2'
A R W03 WINDOW(4 5 10 50)
A RMVWDW
A 5 14'Window 2 from DSPF2'
A R DUMMY ASSUME
A OVERLAY
A 1 2' '


Program for DSPF2 is PGM2.



**free
dcl-f dspf2 workstn ignore(dummy);

exfmt w02;

exfmt w03;

*inlr = *On;
return;


This will display the first window in DSPF2, wait for a command key press, then remove the first window from DSPF2 and display the second window fron DSPF2.



Window 1 in DSPF2



When you press enter you get:



Window 2 in DSPF2



Enter again to end both programs.



Notice that the window from DSPF1 is not removed by PGM2. The ASSUME keyword keeps the display from PGM1 while DSPF2 is open. DSPF1 is suspended while DSPF2 is active, so you can't remove that window while DSPF2 is active unless you omit the ASSUME keyword from DSPF2. But if you omit the ASSUME keyword, the entire display is erased when DSPF2 is opened.



I suppose you might be able to remove the window from DSPF1 if you rewrote the screen without the window just before calling program 2, but you would have to set DFRWRT(*NO) on DSPF1, or the write will not be sufficient to update the screen.






share|improve this answer

























  • This is the exact scenario I am facing. I will try with the provided solution.

    – Susmitha
    Mar 7 at 12:27













4












4








4







So without any better description of the problem, let me try to describe what is going on. I wrote a few minimal programs to help.



First we have a display file with simply a full screen record, and a window. The window will overlay the full screen record.



DSPF1



 A R RECORD1
A 3 19'Base display record'
A 20 18'Base Display Record'
A R W01 WINDOW(7 15 10 50)
A 5 14'Window in DSPF1'


The associated program PGM1



**free
dcl-f dspf1 workstn;

dcl-pr pgm2 ExtPgm('PGM2');
end-pr;

write record1;
exfmt w01;

pgm2();

*inlr = *On;
return;


displays both record1 and w01, and waits for a command key to be pressed. Note both records on the display.



PGM1 Display



The user presses enter and PGM2 is called. Following is the source for the display file and program. Notice the ASSUME keyword in the display file source. This prevents the previous display file from being erased from the display when this display file is opened.



DSPF2



 A R W02 WINDOW(9 20 10 50)
A RMVWDW
A 5 14'Window 1 from DSPF2'
A R W03 WINDOW(4 5 10 50)
A RMVWDW
A 5 14'Window 2 from DSPF2'
A R DUMMY ASSUME
A OVERLAY
A 1 2' '


Program for DSPF2 is PGM2.



**free
dcl-f dspf2 workstn ignore(dummy);

exfmt w02;

exfmt w03;

*inlr = *On;
return;


This will display the first window in DSPF2, wait for a command key press, then remove the first window from DSPF2 and display the second window fron DSPF2.



Window 1 in DSPF2



When you press enter you get:



Window 2 in DSPF2



Enter again to end both programs.



Notice that the window from DSPF1 is not removed by PGM2. The ASSUME keyword keeps the display from PGM1 while DSPF2 is open. DSPF1 is suspended while DSPF2 is active, so you can't remove that window while DSPF2 is active unless you omit the ASSUME keyword from DSPF2. But if you omit the ASSUME keyword, the entire display is erased when DSPF2 is opened.



I suppose you might be able to remove the window from DSPF1 if you rewrote the screen without the window just before calling program 2, but you would have to set DFRWRT(*NO) on DSPF1, or the write will not be sufficient to update the screen.






share|improve this answer















So without any better description of the problem, let me try to describe what is going on. I wrote a few minimal programs to help.



First we have a display file with simply a full screen record, and a window. The window will overlay the full screen record.



DSPF1



 A R RECORD1
A 3 19'Base display record'
A 20 18'Base Display Record'
A R W01 WINDOW(7 15 10 50)
A 5 14'Window in DSPF1'


The associated program PGM1



**free
dcl-f dspf1 workstn;

dcl-pr pgm2 ExtPgm('PGM2');
end-pr;

write record1;
exfmt w01;

pgm2();

*inlr = *On;
return;


displays both record1 and w01, and waits for a command key to be pressed. Note both records on the display.



PGM1 Display



The user presses enter and PGM2 is called. Following is the source for the display file and program. Notice the ASSUME keyword in the display file source. This prevents the previous display file from being erased from the display when this display file is opened.



DSPF2



 A R W02 WINDOW(9 20 10 50)
A RMVWDW
A 5 14'Window 1 from DSPF2'
A R W03 WINDOW(4 5 10 50)
A RMVWDW
A 5 14'Window 2 from DSPF2'
A R DUMMY ASSUME
A OVERLAY
A 1 2' '


Program for DSPF2 is PGM2.



**free
dcl-f dspf2 workstn ignore(dummy);

exfmt w02;

exfmt w03;

*inlr = *On;
return;


This will display the first window in DSPF2, wait for a command key press, then remove the first window from DSPF2 and display the second window fron DSPF2.



Window 1 in DSPF2



When you press enter you get:



Window 2 in DSPF2



Enter again to end both programs.



Notice that the window from DSPF1 is not removed by PGM2. The ASSUME keyword keeps the display from PGM1 while DSPF2 is open. DSPF1 is suspended while DSPF2 is active, so you can't remove that window while DSPF2 is active unless you omit the ASSUME keyword from DSPF2. But if you omit the ASSUME keyword, the entire display is erased when DSPF2 is opened.



I suppose you might be able to remove the window from DSPF1 if you rewrote the screen without the window just before calling program 2, but you would have to set DFRWRT(*NO) on DSPF1, or the write will not be sufficient to update the screen.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 7 at 17:22

























answered Mar 6 at 18:43









jmarkmurphyjmarkmurphy

7,9362041




7,9362041












  • This is the exact scenario I am facing. I will try with the provided solution.

    – Susmitha
    Mar 7 at 12:27

















  • This is the exact scenario I am facing. I will try with the provided solution.

    – Susmitha
    Mar 7 at 12:27
















This is the exact scenario I am facing. I will try with the provided solution.

– Susmitha
Mar 7 at 12:27





This is the exact scenario I am facing. I will try with the provided solution.

– Susmitha
Mar 7 at 12:27



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021944%2fhow-to-remove-the-previous-window-when-displaying-new-window-in-as400%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

Алба-Юлія

Захаров Федір Захарович