• positioning in key sequenced file

    From njdreams Golda@goldanjdreams@gmail.com to comp.sys.tandem on Fri Oct 21 10:35:30 2022
    From Newsgroup: comp.sys.tandem

    Need help,

    How we can do the key positioning in FILE_SETKEY_ guardian call when the file is read in reverse.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From invalid@invalid@nowhere.com (JShepherd) to comp.sys.tandem on Fri Oct 21 17:54:42 2022
    From Newsgroup: comp.sys.tandem

    In article <7b4c3653-45c2-455a-910e-bc2713415a92n@googlegroups.com>, goldanjdreams@gmail.com says...

    Need help,

    How we can do the key positioning in FILE_SETKEY_ guardian call when the
    file is
    read in reverse.



    Guardian Procedure Calls Reference Manual

    https://support.hpe.com/hpesc/public/docDisplay? docLocale=en_US&docId=a00022744en_us


    #include "$system.zsysdefs.zsysc"
    #include <cextdecs>

    #define POSITION_APPROXIMATE 0
    #define POSITION_GENERIC 1
    #define POSITION_EXACT 2
    #define PRIMARY_KEY 0


    error = FILE_SETKEY_(fnum, (char *)&key, (short)sizeof(key)
    ,PRIMARY_KEY
    ,POSITION_APPROXIMATE
    ,ZSYS_VAL_SETKEYOPT_READREVERSE
    /*, compare length */);


    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Keith Dick@rkdick@gmail.com to comp.sys.tandem on Fri Oct 21 21:23:09 2022
    From Newsgroup: comp.sys.tandem

    On Friday, October 21, 2022 at 10:54:44 AM UTC-7, JShepherd wrote:
    In article <7b4c3653-45c2-455a...@googlegroups.com>,
    goldan...@gmail.com says...

    Need help,

    How we can do the key positioning in FILE_SETKEY_ guardian call when the file is
    read in reverse.
    Guardian Procedure Calls Reference Manual

    https://support.hpe.com/hpesc/public/docDisplay? docLocale=en_US&docId=a00022744en_us


    #include "$system.zsysdefs.zsysc"
    #include <cextdecs>

    #define POSITION_APPROXIMATE 0
    #define POSITION_GENERIC 1
    #define POSITION_EXACT 2
    #define PRIMARY_KEY 0


    error = FILE_SETKEY_(fnum, (char *)&key, (short)sizeof(key)
    ,PRIMARY_KEY
    ,POSITION_APPROXIMATE
    ,ZSYS_VAL_SETKEYOPT_READREVERSE
    /*, compare length */);

    Although the link to the Guardian Procedure Calls manual that JShepherd includes currently works, HPE sometimes publishes new versions of a manual that are given different URLs, and sometimes rearranges the document library in other ways.

    A way to find a document for the NonStop system that is likely to work for a longer amount of time is to go to this page:

    www.hpe.com/info/nonstop-docs

    then click on the link for the type of NonStop system (J-series or L-series), then fill in appropriate keywords for a search to locate the manual you need.

    The keywords can be words in the title of the manual or words in the body of the manual.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From njdreams Golda@goldanjdreams@gmail.com to comp.sys.tandem on Mon Oct 24 06:49:30 2022
    From Newsgroup: comp.sys.tandem

    On Friday, October 21, 2022 at 11:24:44 PM UTC+5:30, JShepherd wrote:
    In article <7b4c3653-45c2-455a...@googlegroups.com>,
    goldan...@gmail.com says...

    Need help,

    How we can do the key positioning in FILE_SETKEY_ guardian call when the file is
    read in reverse.
    Guardian Procedure Calls Reference Manual

    https://support.hpe.com/hpesc/public/docDisplay? docLocale=en_US&docId=a00022744en_us


    #include "$system.zsysdefs.zsysc"
    #include <cextdecs>

    #define POSITION_APPROXIMATE 0
    #define POSITION_GENERIC 1
    #define POSITION_EXACT 2
    #define PRIMARY_KEY 0


    error = FILE_SETKEY_(fnum, (char *)&key, (short)sizeof(key)
    ,PRIMARY_KEY
    ,POSITION_APPROXIMATE
    ,ZSYS_VAL_SETKEYOPT_READREVERSE
    /*, compare length */);



    Can you help me with the value of "ZSYS_VAL_SETKEYOPT_READREVERSE" referred here?
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Keith Dick@rkdick@gmail.com to comp.sys.tandem on Mon Oct 24 07:17:08 2022
    From Newsgroup: comp.sys.tandem

    On Monday, October 24, 2022 at 6:49:32 AM UTC-7, goldan...@gmail.com wrote:
    On Friday, October 21, 2022 at 11:24:44 PM UTC+5:30, JShepherd wrote:
    In article <7b4c3653-45c2-455a...@googlegroups.com>,
    goldan...@gmail.com says...

    Need help,

    How we can do the key positioning in FILE_SETKEY_ guardian call when the file is
    read in reverse.
    Guardian Procedure Calls Reference Manual

    https://support.hpe.com/hpesc/public/docDisplay? docLocale=en_US&docId=a00022744en_us


    #include "$system.zsysdefs.zsysc"
    #include <cextdecs>

    #define POSITION_APPROXIMATE 0
    #define POSITION_GENERIC 1
    #define POSITION_EXACT 2
    #define PRIMARY_KEY 0


    error = FILE_SETKEY_(fnum, (char *)&key, (short)sizeof(key)
    ,PRIMARY_KEY
    ,POSITION_APPROXIMATE
    ,ZSYS_VAL_SETKEYOPT_READREVERSE
    /*, compare length */);
    Can you help me with the value of "ZSYS_VAL_SETKEYOPT_READREVERSE" referred here?
    What kind of help do you want? I believe it is defined in $system.zsysdefs.zsysc, which JShepherd's example code shows to include via the statement:
    #include "$system.zsysdefs.zsysc"
    If, for some reason, you don't want to use the various declarations provided in zsysc, look in the manual we referenced to find which bit must be turned on in the sixths argument to request positioning for reverse reading.
    In addition to looking at the Guardian Procedure Calls manual we referenced, you might need to look at the Enscribe Programming manual to understand better how to use the Enscribe procedure calls (more than the Guardian Procedure Calls manual tells you). You can find the Enscribe Programming manual via the method I mentioned in my previous post.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From njdreams Golda@goldanjdreams@gmail.com to comp.sys.tandem on Tue Oct 25 07:40:42 2022
    From Newsgroup: comp.sys.tandem

    On Monday, October 24, 2022 at 7:47:10 PM UTC+5:30, rkd...@gmail.com wrote:
    On Monday, October 24, 2022 at 6:49:32 AM UTC-7, goldan...@gmail.com wrote:
    On Friday, October 21, 2022 at 11:24:44 PM UTC+5:30, JShepherd wrote:
    In article <7b4c3653-45c2-455a...@googlegroups.com>,
    goldan...@gmail.com says...

    Need help,

    How we can do the key positioning in FILE_SETKEY_ guardian call when the
    file is
    read in reverse.
    Guardian Procedure Calls Reference Manual

    https://support.hpe.com/hpesc/public/docDisplay? docLocale=en_US&docId=a00022744en_us


    #include "$system.zsysdefs.zsysc"
    #include <cextdecs>

    #define POSITION_APPROXIMATE 0
    #define POSITION_GENERIC 1
    #define POSITION_EXACT 2
    #define PRIMARY_KEY 0


    error = FILE_SETKEY_(fnum, (char *)&key, (short)sizeof(key)
    ,PRIMARY_KEY
    ,POSITION_APPROXIMATE
    ,ZSYS_VAL_SETKEYOPT_READREVERSE
    /*, compare length */);
    Can you help me with the value of "ZSYS_VAL_SETKEYOPT_READREVERSE" referred here?
    What kind of help do you want? I believe it is defined in $system.zsysdefs.zsysc, which JShepherd's example code shows to include via the statement:

    #include "$system.zsysdefs.zsysc"

    If, for some reason, you don't want to use the various declarations provided in zsysc, look in the manual we referenced to find which bit must be turned on in the sixths argument to request positioning for reverse reading.

    In addition to looking at the Guardian Procedure Calls manual we referenced, you might need to look at the Enscribe Programming manual to understand better how to use the Enscribe procedure calls (more than the Guardian Procedure Calls manual tells you). You can find the Enscribe Programming manual via the method I mentioned in my previous post.
    Thanks for all your help .
    Can we follow the same for read reverse lookup for alternate key lookup ?
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Keith Dick@rkdick@gmail.com to comp.sys.tandem on Tue Oct 25 08:39:31 2022
    From Newsgroup: comp.sys.tandem

    On Tuesday, October 25, 2022 at 7:40:43 AM UTC-7, goldan...@gmail.com wrote:
    On Monday, October 24, 2022 at 7:47:10 PM UTC+5:30, rkd...@gmail.com wrote:
    On Monday, October 24, 2022 at 6:49:32 AM UTC-7, goldan...@gmail.com wrote:
    On Friday, October 21, 2022 at 11:24:44 PM UTC+5:30, JShepherd wrote:
    In article <7b4c3653-45c2-455a...@googlegroups.com>, goldan...@gmail.com says...

    Need help,

    How we can do the key positioning in FILE_SETKEY_ guardian call when the
    file is
    read in reverse.
    Guardian Procedure Calls Reference Manual

    https://support.hpe.com/hpesc/public/docDisplay? docLocale=en_US&docId=a00022744en_us


    #include "$system.zsysdefs.zsysc"
    #include <cextdecs>

    #define POSITION_APPROXIMATE 0
    #define POSITION_GENERIC 1
    #define POSITION_EXACT 2
    #define PRIMARY_KEY 0


    error = FILE_SETKEY_(fnum, (char *)&key, (short)sizeof(key) ,PRIMARY_KEY
    ,POSITION_APPROXIMATE
    ,ZSYS_VAL_SETKEYOPT_READREVERSE
    /*, compare length */);
    Can you help me with the value of "ZSYS_VAL_SETKEYOPT_READREVERSE" referred here?
    What kind of help do you want? I believe it is defined in $system.zsysdefs.zsysc, which JShepherd's example code shows to include via the statement:

    #include "$system.zsysdefs.zsysc"

    If, for some reason, you don't want to use the various declarations provided in zsysc, look in the manual we referenced to find which bit must be turned on in the sixths argument to request positioning for reverse reading.

    In addition to looking at the Guardian Procedure Calls manual we referenced, you might need to look at the Enscribe Programming manual to understand better how to use the Enscribe procedure calls (more than the Guardian Procedure Calls manual tells you). You can find the Enscribe Programming manual via the method I mentioned in my previous post.
    Thanks for all your help .

    Can we follow the same for read reverse lookup for alternate key lookup ?
    Yes, the same code works for read reverse by an alternate key as long as you pass the alternate key's specifier in the fourth argument of the SET_FILEKEY_ call (and put the alternate key's value and length in the second and third arguments). The alternate key's specifier is the 16-bit value used to identify the alternate key when you create the alternate key. It usually is given as two ASCII characters in FUP commands, but don't specify it that way in the fourth argument to FILE_SETKEY_. The alternate key specifier must be a 16-bit value, not the address of a string.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From njdreams Golda@goldanjdreams@gmail.com to comp.sys.tandem on Thu Oct 27 09:08:51 2022
    From Newsgroup: comp.sys.tandem

    On Tuesday, October 25, 2022 at 9:09:32 PM UTC+5:30, rkd...@gmail.com wrote:
    On Tuesday, October 25, 2022 at 7:40:43 AM UTC-7, goldan...@gmail.com wrote:
    On Monday, October 24, 2022 at 7:47:10 PM UTC+5:30, rkd...@gmail.com wrote:
    On Monday, October 24, 2022 at 6:49:32 AM UTC-7, goldan...@gmail.com wrote:
    On Friday, October 21, 2022 at 11:24:44 PM UTC+5:30, JShepherd wrote:
    In article <7b4c3653-45c2-455a...@googlegroups.com>, goldan...@gmail.com says...

    Need help,

    How we can do the key positioning in FILE_SETKEY_ guardian call when the
    file is
    read in reverse.
    Guardian Procedure Calls Reference Manual

    https://support.hpe.com/hpesc/public/docDisplay? docLocale=en_US&docId=a00022744en_us


    #include "$system.zsysdefs.zsysc"
    #include <cextdecs>

    #define POSITION_APPROXIMATE 0
    #define POSITION_GENERIC 1
    #define POSITION_EXACT 2
    #define PRIMARY_KEY 0


    error = FILE_SETKEY_(fnum, (char *)&key, (short)sizeof(key) ,PRIMARY_KEY
    ,POSITION_APPROXIMATE
    ,ZSYS_VAL_SETKEYOPT_READREVERSE
    /*, compare length */);
    Can you help me with the value of "ZSYS_VAL_SETKEYOPT_READREVERSE" referred here?
    What kind of help do you want? I believe it is defined in $system.zsysdefs.zsysc, which JShepherd's example code shows to include via the statement:

    #include "$system.zsysdefs.zsysc"

    If, for some reason, you don't want to use the various declarations provided in zsysc, look in the manual we referenced to find which bit must be turned on in the sixths argument to request positioning for reverse reading.

    In addition to looking at the Guardian Procedure Calls manual we referenced, you might need to look at the Enscribe Programming manual to understand better how to use the Enscribe procedure calls (more than the Guardian Procedure Calls manual tells you). You can find the Enscribe Programming manual via the method I mentioned in my previous post.
    Thanks for all your help .

    Can we follow the same for read reverse lookup for alternate key lookup ?
    Yes, the same code works for read reverse by an alternate key as long as you pass the alternate key's specifier in the fourth argument of the SET_FILEKEY_ call (and put the alternate key's value and length in the second and third arguments). The alternate key's specifier is the 16-bit value used to identify the alternate key when you create the alternate key. It usually is given as two ASCII characters in FUP commands, but don't specify it that way in the fourth argument to FILE_SETKEY_. The alternate key specifier must be a 16-bit value, not the address of a string.
    Thank you :)
    --- Synchronet 3.21d-Linux NewsLink 1.2