home *** CD-ROM | disk | FTP | other *** search
- *
- * MF VS Cobol/ MS Cobol V3.0
- * testprogramm ufco032.cbl
- * (test mehrere Formate, alle Funktionen,
- * auslieferung in Manual als Textbeispiel)
- *
- identification division.
- program-id. beispiel.
- environment division.
- data division.
- working-storage section.
- *
- COPY fm01ar.
- COPY fm01bs.
- COPY fm01dr.
- *
- COPY UFCO03.
- *
- procedure division.
- ****************************************
- * FKZ (0) *
- * ■ SAVE SCREEN *
- ****************************************
- p1.
- move 0 to FKZ.
- move "fm01ar " to FMT.
- CALL "UNIF" using FKZ FMT art1 RET SM Daten.
- *
- move "L-22-98877" to bst1.
- move "PC-Modell-1" to art1.
- move 7895.95 to preis1.
- move 1 to FKZ.
- go to artikel.
- programm-ende.
- stop run.
- *
- * article
- ****************************************
- * FKZ (1) (2) (3) *
- * ■ (1) CLS LAYOUT FIELDS OUTPUT *
- * ■ (2) LAYOUT FIELDS OUTPUT *
- * ■ (3) FIELDS OUTPUT *
- ****************************************
- artikel.
- move "fm01ar " to FMT.
- COPY fm01a1.
- call "UNIF" using FKZ FMT art1 RET SM Daten.
- if RET = 200
- move art1 to bart
- move bst1 to bbst
- move preis1 to bpreis
- move 2 to FKZ
- go to bestellen
- else
- move 3 to FKZ
- go to artikel.
- *
- * order
- ****************************************
- * FKZ (2) (3) *
- * ■ (2) LAYOUT FIELDS OUTPUT *
- * ■ (3) FIELDS OUTPUT *
- ****************************************
- bestellen.
- move "fm01bs " to FMT.
- COPY fm01b1.
- call "UNIF" using FKZ FMT bname RET SM Daten.
- if RET = 101
- move 2 to FKZ
- go to artikel.
- if RET = 102
- move 4 to FKZ
- go to liefern.
- if RET = 110
- go to ende.
- move 3 to FKZ.
- go to bestellen.
- *
- * start print
- ****************************************
- * FKZ (4) *
- * ■ DIAPLAY EMPTY FORMAT *
- ****************************************
- liefern.
- move "fm01li " to FMT.
- COPY fm01l1.
- call "UNIF" using FKZ FMT FMT RET SM Daten.
- if RET = 101
- move 2 to FKZ
- go to artikel.
- if RET = 102
- move 2 to FKZ
- go to bestellen.
- if RET = 110
- go to ende.
- if RET = 141
- go to drucken.
- move 4 to FKZ.
- go to liefern.
- *
- * print
- ****************************************
- * FKZ (11) *
- * ■ PRINT AT LPT1: *
- ****************************************
- drucken.
- move bname to dname.
- move bvorname to dvorname.
- move bort to dort.
- move bart to dart.
- move bbst to dbst.
- move bpreis to dpreis.
- move "fm01dr " to FMT.
- COPY fm01d1.
- call "UNIF" using FKZ FMT dname RET SM Daten.
- move 4 to FKZ.
- move "fm01en " to FMT.
- COPY fm01e1.
- call "UNIF" using FKZ FMT art1 RET SM Daten.
- go to ende.
- *
- * end
- ****************************************
- * FKZ (5) *
- * ■ DISPLAY SAVED SCREEN *
- ****************************************
- ende.
- move 5 to FKZ.
- move "fm01ar " to FMT.
- call "UNIF" using FKZ FMT FMT RET SM Daten.
- go to programm-ende.
-