Arrays in Qtp
Lyn Blansett
blansett@harding.edu
Fri, 26 Mar 1999 11:14:23 -0500 (CDT)
I tried this and it worked:
use DEFINE to specify the occurences
ie....
DEFINE D-QUAL1 CHAR*5 = QUALIFICATION(1)
DEFINE D-QUAL2 CHAR*5 = QUALIFICATION(2)
....
DEFINE D-QUAL30 CHAR*5 = QUALIFICATION(30)
Then change your subfile include to use the Define instead of the
occurence, ie....
include NAME, D-QUAL1
...
include NAME, D-QUAL30
Hope this helps!
Lyn Blansett
Searcy, Arkansas
================================================================
Lyn Blansett | H A R D I N G University
<blansett@harding.edu> | Computer / Information Services
Software Programmer/Support | 501 279-4440(Office) 4600(Fax)
================================================================
On Fri, 26 Mar 1999, Ray Bailey wrote:
> VMS 7.1 P/H 710G & HPUX 10.2 P/H 7.33.d3
>
> Picture the following
>
> Record RRR layout
>
> NAME Char*10
> QUALIFICATION Char*5 occurs 30
>
> I want to create a subfile holding one record per valid QUALIFICATION so I
> tried the following.
>
> Access RRR
>
> Subfile SUBFILE_NAME keep alias SUB_01 &
> if QUALIFICATION(1) ne " " &
> include NAME, QUALIFICATION(1)
>
> Subfile SUBFILE_NAME keep alias SUB_02 &
> if QUALIFICATION(2) ne " " &
> include NAME, QUALIFICATION(2)
>
> ~~~~~~~~
>
> Subfile SUBFILE_NAME keep alias SUB_30 &
> if QUALIFICATION(30) ne " " &
> include NAME, QUALIFICATION(30)
>
>
> This seems to be okay with the subscript being specified on the IF option
> but not as part of the INCLUDE.
>
> Does anyone know any way I can do this without having to define thirty items
> or creating a redefinition in the dictionary.
>
> BTW I've allow tried it specifying "of RRR".
>
>
> Ray Bailey
> Leicester
> England
>
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
> Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
> powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
> This list is closed, thus to post to the list, you must be a subscriber.
>
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.