In a paper from the Boston conference 2005 is an example for using periodic-group.
The ADABAS-Definition:
0010 DB: 002 FILE: 004 - MU-PE-PLAY DEFAULT SEQUENCE:
0020 TYPE: ADABAS
0030
0040 T L DB Name F Leng S D
0050 - - – -------------------------------- - ---- - -
0060 M 1 AA MU-NOT-NULL A 3 D
0070 M 1 BB MU-NULL A 3 N D
0080 P 1 CC PE-ONE-NOT-NULL
0090 2 DD NOT-NULL-1 A 3 D
0100 2 EE NOT-NULL-2 A 3 N D
0110 2 FF NOT-NULL-3 A 3 N D
0120 P 1 GG PE-ALL-NULL
0130 2 HH ALL-NULL-1 A 3 N D
0140 2 II ALL-NULL-2 A 3 N D
0150 2 JJ ALL-NULL-3 A 3 N D
0160 DDM OUTPUT TERMINATED
In my project I have also an ADABAS-Definition. This is the part with the periodic group:
PE 1 GERUFEN_JOB AO
2 GERUFEN_TSN A 4.0 AP N
2 GERUFEN_SKZ A 1.0 AQ N
2 GERUFEN_TSA A 1.0 AR N
2 GERUFEN_ABGER A 1.0 AS N
1 GERUFEN_ANZAHL I 2.0 AT
Gerufen_anzahl is not in the periodic group.
My ADABAS-File named acdaten-tgl
and the DDM acdaten-tgl-ddm
In the example is a program, which uses the ADABAS -file.
0010 DEFINE DATA LOCAL
0020 1 CREATER VIEW OF MU-PE-PLAY
0030 2 CPE-ALL-NULL
0040 2 PE-ALL-NULL (1:191) / I changed to 191
0050 3 ALL-NULL-1
0060 3 ALL-NULL-2
0070 3 ALL-NULL-3
0080 1 SHOW VIEW OF MU-PE-PLAY
0090 2 C*PE-ALL-NULL
0100 2 PE-ALL-NULL (1:191)
0110 3 ALL-NULL-1
0120 3 ALL-NULL-2
0130 3 ALL-NULL-3
0140 END-DEFINE
0150 *
0160 INCLUDE AATITLER
0170 INCLUDE AASETCR
0180 *
0190 ***************************
0200 * INITIALIZE PE OCCURRENCES
0210 *
0220 MOVE ‘A2A’ TO CREATER.ALL-NULL-1 (2)
0230 MOVE ‘A3A’ TO CREATER.ALL-NULL-1 (3)
0240 MOVE ‘B2B’ TO CREATER.ALL-NULL-2 (2)
0250 MOVE ‘B3B’ TO CREATER.ALL-NULL-2 (3)
0260 MOVE ‘C2C’ TO CREATER.ALL-NULL-3 (2)
0270 MOVE ‘C3C’ TO CREATER.ALL-NULL-3 (3)
0280 *
0290 CRT. STORE CREATER
0300 *
0310 GETR. GET SHOW *ISN (CRT.)
0320 *
0330 DISPLAY ISN (GETR.) CPE-ALL-NULL PE-ALL-NULL (1:4)
0340 *
0350 BACKOUT TRANSACTION
0360 *
0370 END
The output is
PAGE # 1 DATE: Apr 04, 2005
PROGRAM: PE02 LIBRARY: INSIDE
ISN PE-ALL-NULL PE-ALL-NULL
ALL-NULL-1 ALL-NULL-2 ALL-NULL-3
10 3
A2A B2B C2C
A3A B3B C3C
Important is the value 3 for c*PE-ALL-NULL
In my project I use a LDA. The part with the periodic group:
C 2 GERUFEN_JOB
P 2 GERUFEN_JOB
3 GERUFEN_TSN A 4 (1:191) /* FIELD IN PE
3 GERUFEN_SKZ A 3 (1:191) /* FIELD IN PE
3 GERUFEN_TSA A 3 (1:191) /* FIELD IN PE
3 GERUFEN_ABGER A 3 (1:191) /* FIELD IN PE
2 GERUFEN_ANZAHL I 2
The code in the LDA was generated by Natural with
.V(acdaten-tgl-ddm)
I use the following code:
000030 #ANZAHL_TSN := C*GERUFEN_JOB
000040 WRITE ‘BISHER SIND ’ #ANZAHL_TSN ’ UNTERDATENSäTZE IN DER DB’
But the output is
BISHER SIND 191 UNTERDATENSäTZE IN DER DB•
Can you help me?
Thank you