Difference: PUSHPOPILFStatements (20 vs. 21)

Revision 212012-02-16 - AlKalter

Line: 1 to 1
 
META TOPICPARENT name="APPX500Features"

PUSH & POP ILF Statements

Line: 95 to 95
 Here are a couple of ideas for additional related statements:
  • POP ALL - Empty the stack for the specified field or record
  • POP FIFO - POP the specified field or record from the bottom of the stack - FIFO (first in, first out) manner, rather than LIFO
Added:
>
>
-- SteveFrizzell - 01 Oct 2008
 
Changed:
<
<
-- SteveFrizzell - 01 Oct 2008
<--/commentPlugin-->
>
>
Note that while PUSH/POP are similar to STORE/RESTORE, there are some significant differences. The obvious one is that multiple sequential values can be PUSHed and POPped, while STORE allows only one. There is also a difference in how Group Header fields are handled. With STORE/RESTORE, you can STORE a group header and then RESTORE individual values from within it. But because PUSH/POP recognizes different field names, that approach will not work the same way.

Example: Assume ORDER2 KEY is the key to the ORDER2 file, and is made up of ORDER2 ORDER NO and ORDER2 LINE NO. If you STORE ORDER2 KEY, then doing a RESTORE ORDER2 LINE NO will retrieve that portion of the key that was stored. But if you PUSH ORDER2 KEY and try to POP ORDER2 LINE NO, you'll see that the individual value was not retrieved.

-- AlKalter - 2012-02-16

<--/commentPlugin-->
  -- AlKalter - 04 Apr 2008
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback