![]() |
|
| HOME | RPV HOME PAGE | SUPPORT AND FAQS | DOWNLOADS | |
Rm/COBOL essential example #3.
The following example shows how to
prepare THREE different reports using THE SAME procedure.
Download this example. ZIP file
containing the CBL, CPY, COB & DAT files of this example.
(rmcobolessential.zip 14Kb)
User is prompted to choose between three options:
1.- Standard
report.
2.- Detailed
report
3.- Labels
report. (two labels per record)
What we want to show here is how you can prepare different reports making a
unique "PERFORM".
View the COBOL source code.
Download this example. ZIP file
containing the CBL, CPY, COB & DAT files of this example.
(rmcobolessential.zip 14Kb)
|
IDENTIFICATION DIVISION. |
Code
generated by this program. When selecting "1" (CUSRPV_3.RPX)
|
TEMPLATE=C:\COBOLRPV\TEMP_CU2.RPV |
Standard report (option 1). How it looks when opening with Rpv.

<go top>
Code generated by this program. When selecting "2" (CUSRPV_3.RPX)
Difference between this code and
"option 1" is only the ">{\np}" (new page command) inserted every 6 records
and the selected template.
|
TEMPLATE=C:\COBOLRPV\TEMP_CU3.RPV |MYDETAIL| 520|Alan |Bernard |85 Wilson Avenue. |+44 (0)870-444-4563 |London |United Kingdom |12411 |+44 (0)870-444-4563 |alan_bernard@ukonline.co.uk | |MYDETAIL| 877|Robert |Bollini |2607 S Milwaukee Ave |(773) 489-9954 |Chicago |USA |60647 | |bollini@wsatts.com | |MYDETAIL| 899|Ian Edward |Forbes |8319 N Saint Lauwrence Ave |(773) 783-5197 |Chicago |USA |60618 | |forbes@wsatts.com | |MYDETAIL| 1015|Ian |Forbes |655 Masselin Ave. |(323)933-32477 |Los Angeles |USA |90036-5775 | |pilot82@california.net | |MYDETAIL| 1100|Ralph |Wilson |25 Windermere lane. Siparia. |+61-3-3341000 |Sydney |Australia |5419 |+61-3-3341010 |rwilson128@australian.au | |MYDETAIL| 1244|Robert |Gancar |778 W 42th Street |(212) 12474645 |New York |USA |10011-6014 |(212) 12474645 |rg@nynyny.com | >{\NP} |MYDETAIL| 2541|Jose |Pernia |Benarabe 128 |+34-964-2457479 |Castellon |Spain |1050 |+34-964-2457480 |pernia@yahoo.es | |MYDETAIL| 2555|Barry |Gasshi |5 Wilson Avenue |+44-020-24579 |Mitcham |United Kingdom |CR4 3JR | |barry@dosdos.com | |MYDETAIL| 3241|Michael |Jefferson |17 Wickfield House Wilson Grove |+44-5646427 |London |United Kingdom |56454 |+44-5646430 |mj@co.uk | |MYDETAIL| 3652|Jaques |Piaget |1, av. de L'Imperatrice |05 59416455 |Biarritz |France |64200 |05 59416788 |piaget@pssfska.fr | |MYDETAIL| 9125|Edmondo |Spadaveccia |Via F. Caracciolo 14-80154 |+81-5980511 |Napoli |Italy |80154 | |edmondospada@italusers.it | |MYDETAIL| 85541|Xavier |Parcero |Av. Cutitiba 3212 |+52-74-4653121 |Acapulco |Mexico |1114 |+52-74-4652211 |xpp231@mexmail.com | >{\NP} |MYDETAIL| 87777|Adrian |Arjones |Libertador 8621 |+54-1-45641787 |Buenos Aires |Argentina |1454 |+54-1-45641790 |adrian99@argentina.com.ar | |MYDETAIL| 124632|Carlos |Chavez |Av. Los Leones 1125 |+562-524412 |Santiago |Chile |51124 |+562-524420 |cchavez@ench.com.cl | |MYDETAIL| 2245145|Andrew |Adler |Av. Los Samanes 1111 |+582-7829451 |Caracas |Venezuela |1050 | |adler@cantv.com.ve | |
Detailed report (option 2). How it looks when opening with Rpv.

<go top>
Code generated by this program. When selecting "3" (CUSRPV_3.RPX)
Difference between this code and
"option 1" is only the ">{\np}" (new page command) inserted every 9 records
and the selected template.
|
TEMPLATE=C:\COBOLRPV\TEMP_CU4.RPV |MYDETAIL| 520|Alan |Bernard |85 Wilson Avenue. |+44 (0)870-444-4563 |London |United Kingdom |12411 |+44 (0)870-444-4563 |alan_bernard@ukonline.co.uk | |MYDETAIL| 877|Robert |Bollini |2607 S Milwaukee Ave |(773) 489-9954 |Chicago |USA |60647 | |bollini@wsatts.com | |MYDETAIL| 899|Ian Edward |Forbes |8319 N Saint Lauwrence Ave |(773) 783-5197 |Chicago |USA |60618 | |forbes@wsatts.com | |MYDETAIL| 1015|Ian |Forbes |655 Masselin Ave. |(323)933-32477 |Los Angeles |USA |90036-5775 | |pilot82@california.net | |MYDETAIL| 1100|Ralph |Wilson |25 Windermere lane. Siparia. |+61-3-3341000 |Sydney |Australia |5419 |+61-3-3341010 |rwilson128@australian.au | |MYDETAIL| 1244|Robert |Gancar |778 W 42th Street |(212) 12474645 |New York |USA |10011-6014 |(212) 12474645 |rg@nynyny.com | |MYDETAIL| 2541|Jose |Pernia |Benarabe 128 |+34-964-2457479 |Castellon |Spain |1050 |+34-964-2457480 |pernia@yahoo.es | |MYDETAIL| 2555|Barry |Gasshi |5 Wilson Avenue |+44-020-24579 |Mitcham |United Kingdom |CR4 3JR | |barry@dosdos.com | |MYDETAIL| 3241|Michael |Jefferson |17 Wickfield House Wilson Grove |+44-5646427 |London |United Kingdom |56454 |+44-5646430 |mj@co.uk | >{\NP} |MYDETAIL| 3652|Jaques |Piaget |1, av. de L'Imperatrice |05 59416455 |Biarritz |France |64200 |05 59416788 |piaget@pssfska.fr | |MYDETAIL| 9125|Edmondo |Spadaveccia |Via F. Caracciolo 14-80154 |+81-5980511 |Napoli |Italy |80154 | |edmondospada@italusers.it | |MYDETAIL| 85541|Xavier |Parcero |Av. Cutitiba 3212 |+52-74-4653121 |Acapulco |Mexico |1114 |+52-74-4652211 |xpp231@mexmail.com | |MYDETAIL| 87777|Adrian |Arjones |Libertador 8621 |+54-1-45641787 |Buenos Aires |Argentina |1454 |+54-1-45641790 |adrian99@argentina.com.ar | |MYDETAIL| 124632|Carlos |Chavez |Av. Los Leones 1125 |+562-524412 |Santiago |Chile |51124 |+562-524420 |cchavez@ench.com.cl | |MYDETAIL| 2245145|Andrew |Adler |Av. Los Samanes 1111 |+582-7829451 |Caracas |Venezuela |1050 | |adler@cantv.com.ve | |
Labels report (option 3). How it looks
when opening with Rpv.

<go top>
|
Copyright (C)
2003 Dasp Software. All Rights Reserved. |