Solved

Basic question about DISPLAY in COBOL

Posted on 2001-07-25
6
502 Views
Last Modified: 2006-11-17
I'm new in Cobol for AS400. I wrote some little program with several DISPLAY operators. In my AS400 shows what I wanted to display , but it suspends(stops) after every DISPLAY and wating for me press "Enter" and only after pressing "Enter" it shows me the next DISPLAY.
Why this ?
Thank you.
0
Comment
Question by:Maximka2000
6 Comments
 
LVL 3

Expert Comment

by:P_S_Price
ID: 6316480
This would again seem to be a duplicate of your other question.
0
 

Author Comment

by:Maximka2000
ID: 6316488
Yes you right see my reaction in the first one.
0
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 6316702
Maximka2000,

The DISPLAY and ACCEPT method are for sending and retrieving operator messages.

I think you have to create a display file and look for the extended DISPLAY and extended ACCEPT method.

Good Luck
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 2

Accepted Solution

by:
xinger earned 100 total points
ID: 6329038
You may code a
  DISPLAY ... UPON CONSOLE
and you will not be bothered with needing to press Enter.  

But beware that this will place the displayed message on the QSYSOPR message queue.  That may be an acceptable solution depending on your environment (e.g., you are the only one using the machine.)  But if your company has operators who monitor the QSYSOPR message queue, you may make enemies if you do a lot of this.

If you do this, enter the command
  DSPMSG QSYSOPR
to see your DISPLAY's when your program is done.
0
 
LVL 2

Expert Comment

by:xinger
ID: 6329147
By golly, there is a simple way to do this...

CRTDSPF FILE(QTEMP/DISPLAY) RSTDSP(*NO) DFRWRT(*YES)
OVRDSPF FILE(QDLBACCDSP) TOFILE(QTEMP/DISPLAY)  
CALL YOURPGM
DLTOVR FILE(QDLBACCDSP)

And then if you have done all this within a PDM utility, press F10 twice to see your displays.  If you are doing this outside of a PDM utility, first CALL QCMD and then press F10 once.
0
 

Author Comment

by:Maximka2000
ID: 6330961
That is exactly what I need.
Thank You very much.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Hyena v12.2 is now available for downloading and is available in English, French, German and Spanish versions.
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now