Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sample of codes in PowCobol (Accept and Display)

Status
Not open for further replies.

fawzi

Technical User
Oct 13, 2006
2
GB
Can someone help me by sending a sample of codes on how to program the Accept and Display statement in Power cobol of Fujitsu.
many thanks
 
I haven't used Fujitsu's Power cobol. But I believe the following sort of coding will work:

WORKING-STORAGE SECTION.

01 DATE-FIELD PIC X(8) VALUE SPACES.

[rest of Working-Storage section]

PROCEDURE DIVISION.

DISPLAY 'Enter date you want in MM/DD/YYYY format.'.
ACCEPT DATE-FIELD.


The user's input will go into the field "DATE-FIELD" and then you can do with it what you wish.

Hope this helps, Nina Too
 
thank you Nina Too

this is a very simple code ... i know it (It works well in the RM/COBOL version that i use now.
But i want some samples with Screen Section using windows panel.
many thanks Fawzi - Tunisia
 
Sorry, I can't help you with that, because I'm unfamiliar with the Screen Section (we don't have this section because we're not using Fujitsu COBOL at our shop).

Nina Too
 
Fawzi,

You can download Fujitsu cobol at


It's free
Has examples
It works
Curious as I am? Take a look, it builds windows screen sections for you, whereafter you can sift the source to the bottom.

(not that I'm promoting Fujitsu cobol, it's a great pity that version 6 is so expensive, though)

Greetings,

M. BigMag, The Netherlands.
someone@euronet.nl (no kidding!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top