home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
viscobv6.zip
/
vac22os2
/
ibmcobol
/
samples
/
helloapp
/
helloapp.cbl
next >
Wrap
Text File
|
1997-12-18
|
1KB
|
39 lines
* ---------------------------------------------------
* Visual Age for COBOL Sample Program
* ---------------------------------------------------
Identification Division.
Program-ID. HELLOAPP.
Data Division.
Working-Storage Section.
01 Program-Work-Fields.
05 Input-name Pic x(30).
05 Output-name Pic x(37).
01 Program-flags.
05 Loop-flag Pic 9(01).
88 Loop-done Value 1.
Procedure Division.
Initialize Program-work-fields
Program-flags.
Perform until Loop-done
Display " "
Display "Enter a name or Q to quit:"
Accept Input-name
If function upper-case (Input-name) = "Q"
Set Loop-done to true
Else
Move spaces to Output-name
Move "Hello, " to Output-name (1:7)
Move Input-name to Output-name (8:30)
Display Output-name
End-if
End-perform.
Goback.