Hi,
PE * NEW-ASSET-ATTRIBUTE-GROUP ......
* NEW-ASSET-ID ................... (A12) D
* NEW-ASSET-DESC ................. (A30)
* NEW-ASSET-CURR-CODE ............ (A3)
* NEW-ASSET-NOM-VAL .............. (N11.3)
* NEW-ASSET-LOT-SIZE ............. (N7)
My requirement is that i want to display value of NEW-ASSET-ID but i don't know on which occurence value is populated.
Can you please provide me any example ?
To display value of periodic group field
-
- Posts: 90
- Joined: Sun Mar 14, 2010 5:12 pm
- Skillset: Natural,Adabas,jcl
- Referer: friend
- RGZbrog
- Posts: 101
- Joined: Mon Nov 23, 2009 1:34 pm
- Skillset: Natural, Adabas, Predict, Natural Security, Construct, EntireX, SPoD, NaturalONE
- Referer: SAG Developer Forum
- Location: California, USA
- Contact:
Re: To display value of periodic group field
Although Adabas allows up to 191 occurrences of a PE, your file and application designs should define the logical maximum, and that maximum should be used in your view. Ask Adabas to return the number of occurrences actually used in each record - by using C* notation.
Then code one of the following.
Code: Select all
1 #MAX (I4) CONST <25>
...
1 file VIEW file-name
2 C*NEW-ASSET-ATTRIBUTE-GROUP /* number of occurrences actually used
2 NEW-ASSET-ID (#MAX) /* retrieve a maximum number of occurrences
Then code one of the following.
Code: Select all
ASSIGN #I = C*NEW-ASSET-ATTRIBUTE-GROUP
DISPLAY NEW-ASSET-ID (1:#I)
Code: Select all
FOR #I = 1 C*NEW-ASSET-ATTRIBUTE-GROUP
DISPLAY NEW-ASSET-ID (#I)
-
- Posts: 90
- Joined: Sun Mar 14, 2010 5:12 pm
- Skillset: Natural,Adabas,jcl
- Referer: friend
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 1809
-
by sergeyken
View the latest post
Fri Mar 26, 2021 11:59 pm
-
-
GROUP ID FOR TTY CANNOT BE OBTAINED.
by aarvalar1 » Sun Oct 20, 2024 11:03 pm » in Mainframe Security - 2
- 1780
-
by aarvalar1
View the latest post
Tue Nov 05, 2024 9:25 pm
-
-
-
Converting universal groups to normal Racf group
by aarvalar1 » Thu May 23, 2024 10:15 pm » in Mainframe Security - 5
- 2801
-
by Robert Hansel
View the latest post
Wed Jul 24, 2024 5:12 pm
-
-
- 2
- 2392
-
by Murali_721
View the latest post
Thu Nov 19, 2020 4:24 pm
-
- 6
- 1944
-
by sergeyken
View the latest post
Sat Jul 17, 2021 12:38 am