Need help,file is
How we can do the key positioning in FILE_SETKEY_ guardian call when the
read in reverse.
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 isGuardian Procedure Calls Reference Manual
read in reverse.
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 */);
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 isGuardian Procedure Calls Reference Manual
read in reverse.
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 */);
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 isGuardian Procedure Calls Reference Manual
read in reverse.
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)Can you help me with the value of "ZSYS_VAL_SETKEYOPT_READREVERSE" referred here?
,PRIMARY_KEY
,POSITION_APPROXIMATE
,ZSYS_VAL_SETKEYOPT_READREVERSE
/*, compare length */);
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 thefile 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
. You can find the Enscribe Programming manual via the method I mentioned in my previous post.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:error = FILE_SETKEY_(fnum, (char *)&key, (short)sizeof(key)Can you help me with the value of "ZSYS_VAL_SETKEYOPT_READREVERSE" referred here?
,PRIMARY_KEY
,POSITION_APPROXIMATE
,ZSYS_VAL_SETKEYOPT_READREVERSE
/*, compare length */);
#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)
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 thefile 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
you). You can find the Enscribe Programming manual via the method I mentioned in my previous post.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:error = FILE_SETKEY_(fnum, (char *)&key, (short)sizeof(key) ,PRIMARY_KEYCan you help me with the value of "ZSYS_VAL_SETKEYOPT_READREVERSE" referred here?
,POSITION_APPROXIMATE
,ZSYS_VAL_SETKEYOPT_READREVERSE
/*, compare length */);
#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
Thanks for all your help .
Can we follow the same for read reverse lookup for alternate key lookup ?
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 thefile 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
you). You can find the Enscribe Programming manual via the method I mentioned in my previous post.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:error = FILE_SETKEY_(fnum, (char *)&key, (short)sizeof(key) ,PRIMARY_KEYCan you help me with the value of "ZSYS_VAL_SETKEYOPT_READREVERSE" referred here?
,POSITION_APPROXIMATE
,ZSYS_VAL_SETKEYOPT_READREVERSE
/*, compare length */);
#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
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_. TheThanks 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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 307 |
Nodes: | 16 (2 / 14) |
Uptime: | 97:40:39 |
Calls: | 6,850 |
Calls today: | 1 |
Files: | 12,352 |
Messages: | 5,415,022 |