Hi Brian. I couldn’t get it to work. Not sure why. That really was what I wanted but it didn’t seem to make the readnext key work. ?
Craig
> On Sep 10, 2021, at 10:09 AM, Brian Cram via Rocket Forum <
mail@forum.rocketsoftware.com> wrote:
>
>
> Be sure to join the forums you're interested in to be notified of new content. Click the join button from either the forum listing page or the home page of any given sub-forum.
>
> D3 and mvBase
> Post New Message Online
> Re: pass keys to execute AQL
> Reply to Group Online Reply to Group
>
> Sep 10, 2021 12:07 PM
> Brian Cram
> Actually, the SELECT STRING TO LIST method is ( I believe ) more efficient as it creates the list without actually doing a SELECT. EXECUTE SELECT with a space-delimited set of IDs actually performs an AQL SELECT to find those items and populate a list.
>
> ------------------------------
> Brian S. Cram
> Principal Technical Support Engineer
> Rocket Software
> ------------------------------
> Reply to Group Online View Thread Recommend Forward Flag as Inappropriate Post New Message Online
> -------------------------------------------
> Original Message:
> Sent: 09-08-2021 19:04
> From: Walter Kiess
> Subject: pass keys to execute AQL
>
> Hi Craig,
>
> I do this sort of thing a lot. Depending on what delimiter you have used to store the list of IDs in the variable you may have to change them all to a space first, e.g. LIST.VAR = SWAP(LIST.VAR, "delimiter", " "). Once you have a space delimited list of IDs you can use an EXECUTE statement such as this:
> EXECUTE "LIST FILENAME ": LIST.VAR provided you have default reporting fields set up. You can, of course, use SORT instead of LIST and add as many fields (DICT items) as you need.
>
> HTH
>
> ------------------------------
> Walter Kiess
> Manager IT
> Police Superannuation Board
> Adelaide SA Australia
>
>
>
>
> You are receiving this message because you followed the 'pass keys to execute AQL' message thread. To unsubscribe from this message thread, go to Unsubscribe.
> Update your email preferences to choose the types of email you receive
>
> Unsubscribe from all participation emails
>
>
Original Message:
Sent: 9/10/2021 12:07:00 PM
From: Brian Cram
Subject: RE: pass keys to execute AQL
Actually, the SELECT STRING TO LIST method is ( I believe ) more efficient as it creates the list without actually doing a SELECT. EXECUTE SELECT with a space-delimited set of IDs actually performs an AQL SELECT to find those items and populate a list.
------------------------------
Brian S. Cram
Principal Technical Support Engineer
Rocket Software
------------------------------
Original Message:
Sent: 09-08-2021 19:04
From: Walter Kiess
Subject: pass keys to execute AQL
Hi Craig,
I do this sort of thing a lot. Depending on what delimiter you have used to store the list of IDs in the variable you may have to change them all to a space first, e.g. LIST.VAR = SWAP(LIST.VAR, "delimiter", " "). Once you have a space delimited list of IDs you can use an EXECUTE statement such as this:
EXECUTE "LIST FILENAME ": LIST.VAR provided you have default reporting fields set up. You can, of course, use SORT instead of LIST and add as many fields (DICT items) as you need.
HTH
------------------------------
Walter Kiess
Manager IT
Police Superannuation Board
Adelaide SA Australia
Original Message:
Sent: 09-08-2021 08:48
From: Craig Curtis
Subject: pass keys to execute AQL
Morning ALL,
I am lacking a bit or brain power and cannot remember how to accomplish this. In my basic program I have a list of keys that have been placed in a variable. I now want to run a LIST FILENAME using a EXECUTE to generate and capture a simple report. How do I make the keys in the variable the active list?
I hope that makes since.
Thanks
------------------------------
Craig Curtis
System Programmer
Sevier Valley School District
Richfield UT United States
------------------------------
</mail@forum.rocketsoftware.com>