Re: [Hardhats-members] DINUM-ish question
Thanks Roy, That's what I ended up doing. I got this working yesterday. Thanks! Kevin On 5/18/06, Roy Gaber <[EMAIL PROTECTED]> wrote: Then I would recommend doing a reverse $O From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven McPhelan Sent: Thursday, May 18, 2006 9:00 AM To: hardhats-members@lists.sourceforge.net Subject: Re: [Hardhats-members] DINUM-ish question That is correct. One should never assume that the third piece of the file header node is the last record in the file. It may or may not be. There was a recent Fileman patch which stops Fileman reindexer from setting the third piece of that header node to the last entry in the file as it used to do. On 5/17/06, Kevin Toppenberg <[EMAIL PROTECTED]> wrote: According to the Fileman reference manual, the 3rd piece is "most recently assigned internal entry number" and the 4th piece is the "current total number of entries" If there had been a deletion and addition into the middle of the file your method wouldn't work. For example, if the entries were: 1,2,3,6,7,9,15 and 6 was the last one added, then we would have ^^6^7 Right? Kevin current total number of entries On 5/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The 3rd piece of the zeroth node is equal to the last IEN of the file, > increment that number by 1 for the next IEN ie, > > S (DINUM,X)=+$p(^psndf(50.67,0),U,3)+1,DIC="^PSNDF(50.67,",DIC(0)="L" > K DD,D0 D FILE^DICN Q:Y'>0 > > > > - Original Message ----- > From: Kevin Toppenberg < [EMAIL PROTECTED]> > Date: Wednesday, May 17, 2006 2:29 pm > Subject: Re: [Hardhats-members] DINUM-ish question > To: hardhats-members@lists.sourceforge.net > > > Actually, FILE^DICN also wants a value for .01 field, which we > > established is a request for the new records IEN. And I don't know > > what that should be without looking it up. So I don't see how this > > will help me. > > > > I am justing going to $order(^PSNDF(50.67,INDEX),-1) until I get a > > numeric value. This will be the last record number, and I will > > increment this by one. > > > > Kevin > > > > > > On 5/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote: > > > Kevin, why not let Fileman creat the entry for you using FILE^DICN, > > > this way you get the IEN you need passed bay to you for use in your > > > DBS call(s). > > > > > > - Original Message - > > > From: Gregory Woodhouse <[EMAIL PROTECTED]> > > > Date: Tuesday, May 16, 2006 12:40 pm > > > Subject: Re: [Hardhats-members] DINUM-ish question > > > To: hardhats-members@lists.sourceforge.net > > > Cc: [EMAIL PROTECTED] > > > > > > > > > > > On May 15, 2006, at 10:53 PM, chuck5566 wrote: > > > > > > > > > I don't think you have to do anything different - simply set > > > > that . > > > > > 01 node (of TMGFDA) to the number you wish to use. > > > > > > > > > > Are you getting an error?If so, are you using the TMGIEN > > > > array > > > > > to define the IEN? > > > > > > > > Is the .01 field set to the IEN in the input transform? If so, I > > > > think it would be enough to give it a value. If not, a brute > force > > > > > > > > solution would be to get the IEN from the output array and then > > > > make > > > > a second call to set the .01 field to the IEN. > > > > > > > > Gregory Woodhouse > > > > [EMAIL PROTECTED] > > > > > > > > Metaphors be with you. > > > > > > > > > > > > > > > > > > > > > --- > > > Using Tomcat but need to do more? Need to support web services, > > security?> Get stuff done quickly with pre-integrated technology > > to make your job easier > > > Download IBM WebSphere Application Server v.1.0.1 based on > > Apache Geronimo > > > http://sel.as- > > us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ___> Hardhats-members > > mailing list > > > Hardhats-members@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > > > > > > -
RE: [Hardhats-members] DINUM-ish question
Then I would recommend doing a reverse $O From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven McPhelan Sent: Thursday, May 18, 2006 9:00 AM To: hardhats-members@lists.sourceforge.net Subject: Re: [Hardhats-members] DINUM-ish question That is correct. One should never assume that the third piece of the file header node is the last record in the file. It may or may not be. There was a recent Fileman patch which stops Fileman reindexer from setting the third piece of that header node to the last entry in the file as it used to do. On 5/17/06, Kevin Toppenberg <[EMAIL PROTECTED]> wrote: According to the Fileman reference manual, the 3rd piece is "most recently assigned internal entry number" and the 4th piece is the "current total number of entries" If there had been a deletion and addition into the middle of the file your method wouldn't work. For example, if the entries were: 1,2,3,6,7,9,15 and 6 was the last one added, then we would have ^^6^7 Right? Kevin current total number of entries On 5/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The 3rd piece of the zeroth node is equal to the last IEN of the file, > increment that number by 1 for the next IEN ie, > > S (DINUM,X)=+$p(^psndf(50.67,0),U,3)+1,DIC="^PSNDF(50.67,",DIC(0)="L" > K DD,D0 D FILE^DICN Q:Y'>0 > > > > - Original Message - > From: Kevin Toppenberg < [EMAIL PROTECTED]> > Date: Wednesday, May 17, 2006 2:29 pm > Subject: Re: [Hardhats-members] DINUM-ish question > To: hardhats-members@lists.sourceforge.net > > > Actually, FILE^DICN also wants a value for .01 field, which we > > established is a request for the new records IEN. And I don't know > > what that should be without looking it up. So I don't see how this > > will help me. > > > > I am justing going to $order(^PSNDF(50.67,INDEX),-1) until I get a > > numeric value. This will be the last record number, and I will > > increment this by one. > > > > Kevin > > > > > > On 5/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote: > > > Kevin, why not let Fileman creat the entry for you using FILE^DICN, > > > this way you get the IEN you need passed bay to you for use in your > > > DBS call(s). > > > > > > - Original Message - > > > From: Gregory Woodhouse <[EMAIL PROTECTED]> > > > Date: Tuesday, May 16, 2006 12:40 pm > > > Subject: Re: [Hardhats-members] DINUM-ish question > > > To: hardhats-members@lists.sourceforge.net > > > Cc: [EMAIL PROTECTED] > > > > > > > > > > > On May 15, 2006, at 10:53 PM, chuck5566 wrote: > > > > > > > > > I don't think you have to do anything different - simply set > > > > that . > > > > > 01 node (of TMGFDA) to the number you wish to use. > > > > > > > > > > Are you getting an error?If so, are you using the TMGIEN > > > > array > > > > > to define the IEN? > > > > > > > > Is the .01 field set to the IEN in the input transform? If so, I > > > > think it would be enough to give it a value. If not, a brute > force > > > > > > > > solution would be to get the IEN from the output array and then > > > > make > > > > a second call to set the .01 field to the IEN. > > > > > > > > Gregory Woodhouse > > > > [EMAIL PROTECTED] > > > > > > > > Metaphors be with you. > > > > > > > > > > > > > > > > > > > > > --- > > > Using Tomcat but need to do more? Need to support web services, > > security?> Get stuff done quickly with pre-integrated technology > > to make your job easier > > > Download IBM WebSphere Application Server v.1.0.1 based on > > Apache Geronimo > > > http://sel.as- > > us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ___> Hardhats-members > > mailing list > > > Hardhats-members@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > > > > > > --- > > Using Tomcat but need to do more? Need to support web services, > > security?Get stuff done quickly with pre-integrated technology to > > make your job easier > > Download IBM WebSphere Application Server v
Re: [Hardhats-members] DINUM-ish question
That is correct. One should never assume that the third piece of the file header node is the last record in the file. It may or may not be. There was a recent Fileman patch which stops Fileman reindexer from setting the third piece of that header node to the last entry in the file as it used to do. On 5/17/06, Kevin Toppenberg <[EMAIL PROTECTED]> wrote: According to the Fileman reference manual, the 3rd piece is "mostrecently assigned internal entry number" and the 4th piece is the "current total number of entries"If there had been a deletion and addition into the middle of the fileyour method wouldn't work.For example, if the entries were:1,2,3,6,7,9,15 and 6 was the last one added, then we would have^^6^7Right?Kevincurrent total number of entriesOn 5/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:> The 3rd piece of the zeroth node is equal to the last IEN of the file,> increment that number by 1 for the next IEN ie, >> S (DINUM,X)=+$p(^psndf(50.67,0),U,3)+1,DIC="^PSNDF(50.67,",DIC(0)="L"> K DD,D0 D FILE^DICN Q:Y'>0>>>> - Original Message -> From: Kevin Toppenberg < [EMAIL PROTECTED]>> Date: Wednesday, May 17, 2006 2:29 pm> Subject: Re: [Hardhats-members] DINUM-ish question> To: hardhats-members@lists.sourceforge.net>> > Actually, FILE^DICN also wants a value for .01 field, which we> > established is a request for the new records IEN. And I don't know> > what that should be without looking it up. So I don't see how this > > will help me.> >> > I am justing going to $order(^PSNDF(50.67,INDEX),-1) until I get a> > numeric value. This will be the last record number, and I will> > increment this by one. > >> > Kevin> >> >> > On 5/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:> > > Kevin, why not let Fileman creat the entry for you using FILE^DICN,> > > this way you get the IEN you need passed bay to you for use in your> > > DBS call(s).> > > > > > - Original Message -> > > From: Gregory Woodhouse <[EMAIL PROTECTED]>> > > Date: Tuesday, May 16, 2006 12:40 pm > > > Subject: Re: [Hardhats-members] DINUM-ish question> > > To: hardhats-members@lists.sourceforge.net> > > Cc: [EMAIL PROTECTED]> > >> > > >> > > > On May 15, 2006, at 10:53 PM, chuck5566 wrote:> > > >> > > > > I don't think you have to do anything different - simply set > > > > that .> > > > > 01 node (of TMGFDA) to the number you wish to use.> > > > >> > > > > Are you getting an error?If so, are you using the TMGIEN > > > > array> > > > > to define the IEN?> > > >> > > > Is the .01 field set to the IEN in the input transform? If so, I> > > > think it would be enough to give it a value. If not, a brute > force> > > >> > > > solution would be to get the IEN from the output array and then> > > > make> > > > a second call to set the .01 field to the IEN. > > > >> > > > Gregory Woodhouse> > > > [EMAIL PROTECTED]> > > >> > > > Metaphors be with you. > > > >> > > >> > > >> > >> > >> > > ---> > > Using Tomcat but need to do more? Need to support web services, > > security?> Get stuff done quickly with pre-integrated technology> > to make your job easier> > > Download IBM WebSphere Application Server v.1.0.1 based on> > Apache Geronimo > > > http://sel.as-> > us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> > ___> Hardhats-members> > mailing list> > > Hardhats-members@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/hardhats-members> > >> >> >> > --- > > Using Tomcat but need to do more? Need to support web services,> > security?Get stuff done quickly with pre-integrated technology to> > make your job easier> > Download IBM WebSphere Application Server v.1.0.1 based on Apache> > Geronimohttp://sel.as-> > us.falkag.net/sel?> cmd=lnk&kid=120709&bid=263057&dat=121642___ > > > Hardhats-members mailing list> > Hardhats-members@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/hardhats-members> >>>> --
Re: [Hardhats-members] DINUM-ish question
According to the Fileman reference manual, the 3rd piece is "most recently assigned internal entry number" and the 4th piece is the "current total number of entries" If there had been a deletion and addition into the middle of the file your method wouldn't work. For example, if the entries were: 1,2,3,6,7,9,15 and 6 was the last one added, then we would have ^^6^7 Right? Kevin current total number of entries On 5/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: The 3rd piece of the zeroth node is equal to the last IEN of the file, increment that number by 1 for the next IEN ie, S (DINUM,X)=+$p(^psndf(50.67,0),U,3)+1,DIC="^PSNDF(50.67,",DIC(0)="L" K DD,D0 D FILE^DICN Q:Y'>0 - Original Message - From: Kevin Toppenberg <[EMAIL PROTECTED]> Date: Wednesday, May 17, 2006 2:29 pm Subject: Re: [Hardhats-members] DINUM-ish question To: hardhats-members@lists.sourceforge.net > Actually, FILE^DICN also wants a value for .01 field, which we > established is a request for the new records IEN. And I don't know > what that should be without looking it up. So I don't see how this > will help me. > > I am justing going to $order(^PSNDF(50.67,INDEX),-1) until I get a > numeric value. This will be the last record number, and I will > increment this by one. > > Kevin > > > On 5/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Kevin, why not let Fileman creat the entry for you using FILE^DICN, > > this way you get the IEN you need passed bay to you for use in your > > DBS call(s). > > > > ----- Original Message - > > From: Gregory Woodhouse <[EMAIL PROTECTED]> > > Date: Tuesday, May 16, 2006 12:40 pm > > Subject: Re: [Hardhats-members] DINUM-ish question > > To: hardhats-members@lists.sourceforge.net > > Cc: [EMAIL PROTECTED] > > > > > > > > On May 15, 2006, at 10:53 PM, chuck5566 wrote: > > > > > > > I don't think you have to do anything different - simply set > > > that . > > > > 01 node (of TMGFDA) to the number you wish to use. > > > > > > > > Are you getting an error?If so, are you using the TMGIEN > > > array > > > > to define the IEN? > > > > > > Is the .01 field set to the IEN in the input transform? If so, I > > > think it would be enough to give it a value. If not, a brute force > > > > > > solution would be to get the IEN from the output array and then > > > make > > > a second call to set the .01 field to the IEN. > > > > > > Gregory Woodhouse > > > [EMAIL PROTECTED] > > > > > > Metaphors be with you. > > > > > > > > > > > > > > > --- > > Using Tomcat but need to do more? Need to support web services, > security?> Get stuff done quickly with pre-integrated technology > to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on > Apache Geronimo > > http://sel.as- > us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > ___> Hardhats-members > mailing list > > Hardhats-members@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > > --- > Using Tomcat but need to do more? Need to support web services, > security?Get stuff done quickly with pre-integrated technology to > make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimohttp://sel.as- > us.falkag.net/sel? cmd=lnk&kid=120709&bid=263057&dat=121642___ > Hardhats-members mailing list > Hardhats-members@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hardhats-members > --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] DINUM-ish question
The 3rd piece of the zeroth node is equal to the last IEN of the file, increment that number by 1 for the next IEN ie, S (DINUM,X)=+$p(^psndf(50.67,0),U,3)+1,DIC="^PSNDF(50.67,",DIC(0)="L" K DD,D0 D FILE^DICN Q:Y'>0 - Original Message - From: Kevin Toppenberg <[EMAIL PROTECTED]> Date: Wednesday, May 17, 2006 2:29 pm Subject: Re: [Hardhats-members] DINUM-ish question To: hardhats-members@lists.sourceforge.net > Actually, FILE^DICN also wants a value for .01 field, which we > established is a request for the new records IEN. And I don't know > what that should be without looking it up. So I don't see how this > will help me. > > I am justing going to $order(^PSNDF(50.67,INDEX),-1) until I get a > numeric value. This will be the last record number, and I will > increment this by one. > > Kevin > > > On 5/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Kevin, why not let Fileman creat the entry for you using FILE^DICN, > > this way you get the IEN you need passed bay to you for use in your > > DBS call(s). > > > > - Original Message ----- > > From: Gregory Woodhouse <[EMAIL PROTECTED]> > > Date: Tuesday, May 16, 2006 12:40 pm > > Subject: Re: [Hardhats-members] DINUM-ish question > > To: hardhats-members@lists.sourceforge.net > > Cc: [EMAIL PROTECTED] > > > > > > > > On May 15, 2006, at 10:53 PM, chuck5566 wrote: > > > > > > > I don't think you have to do anything different - simply set > > > that . > > > > 01 node (of TMGFDA) to the number you wish to use. > > > > > > > > Are you getting an error?If so, are you using the TMGIEN > > > array > > > > to define the IEN? > > > > > > Is the .01 field set to the IEN in the input transform? If so, I > > > think it would be enough to give it a value. If not, a brute force > > > > > > solution would be to get the IEN from the output array and then > > > make > > > a second call to set the .01 field to the IEN. > > > > > > Gregory Woodhouse > > > [EMAIL PROTECTED] > > > > > > Metaphors be with you. > > > > > > > > > > > > > > > --- > > Using Tomcat but need to do more? Need to support web services, > security?> Get stuff done quickly with pre-integrated technology > to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on > Apache Geronimo > > http://sel.as- > us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > ___> Hardhats-members > mailing list > > Hardhats-members@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > > --- > Using Tomcat but need to do more? Need to support web services, > security?Get stuff done quickly with pre-integrated technology to > make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimohttp://sel.as- > us.falkag.net/sel? cmd=lnk&kid=120709&bid=263057&dat=121642___ > Hardhats-members mailing list > Hardhats-members@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hardhats-members > --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] DINUM-ish question
Actually, FILE^DICN also wants a value for .01 field, which we established is a request for the new records IEN. And I don't know what that should be without looking it up. So I don't see how this will help me. I am justing going to $order(^PSNDF(50.67,INDEX),-1) until I get a numeric value. This will be the last record number, and I will increment this by one. Kevin On 5/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Kevin, why not let Fileman creat the entry for you using FILE^DICN, this way you get the IEN you need passed bay to you for use in your DBS call(s). - Original Message - From: Gregory Woodhouse <[EMAIL PROTECTED]> Date: Tuesday, May 16, 2006 12:40 pm Subject: Re: [Hardhats-members] DINUM-ish question To: hardhats-members@lists.sourceforge.net Cc: [EMAIL PROTECTED] > > On May 15, 2006, at 10:53 PM, chuck5566 wrote: > > > I don't think you have to do anything different - simply set > that . > > 01 node (of TMGFDA) to the number you wish to use. > > > > Are you getting an error?If so, are you using the TMGIEN > array > > to define the IEN? > > Is the .01 field set to the IEN in the input transform? If so, I > think it would be enough to give it a value. If not, a brute force > > solution would be to get the IEN from the output array and then > make > a second call to set the .01 field to the IEN. > > Gregory Woodhouse > [EMAIL PROTECTED] > > Metaphors be with you. > > > --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] DINUM-ish question
This seems like the best answer. I'll try it. Thanks Kevin On 5/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Kevin, why not let Fileman creat the entry for you using FILE^DICN, this way you get the IEN you need passed bay to you for use in your DBS call(s). - Original Message - From: Gregory Woodhouse <[EMAIL PROTECTED]> Date: Tuesday, May 16, 2006 12:40 pm Subject: Re: [Hardhats-members] DINUM-ish question To: hardhats-members@lists.sourceforge.net Cc: [EMAIL PROTECTED] > > On May 15, 2006, at 10:53 PM, chuck5566 wrote: > > > I don't think you have to do anything different - simply set > that . > > 01 node (of TMGFDA) to the number you wish to use. > > > > Are you getting an error?If so, are you using the TMGIEN > array > > to define the IEN? > > Is the .01 field set to the IEN in the input transform? If so, I > think it would be enough to give it a value. If not, a brute force > > solution would be to get the IEN from the output array and then > make > a second call to set the .01 field to the IEN. > > Gregory Woodhouse > [EMAIL PROTECTED] > > Metaphors be with you. > > > --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] DINUM-ish question
I beg to differ. On May 16, 2006, at 1:09 PM, Greg Woodhouse wrote: --- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: Are you saying that it does not matter what value I put into the .01 field, and that it will be overwritten such that it stores the newly added records' IEN? Kevin I don't believe so. There is no need for the .01 field to be overwritten. If the value used for the .01 is accepted by the input transform, that value is also used to create the IEN. In fact, it's just the opposite. As long as you have the "E" in the first parameter in your UPDATE^DIE (your call does), the value that comes out the input transform will be the new record's IEN. If you seed the IEN array before the call (to try to specify the new record's IEN), it's ignored. For example, if you set: TMGFDA(50.67,"+1,",.01)= TMGIEN(1)=600 when you make that call (successfully), TNGIEN(1) will come back as . Yes, except that I'm not sure that DINUM applies to DBS calls. An input transform works by setting X to the value that should be used (or killing it to reject the value entirely). However, you need to be careful and not supply input as an internal value, because then the input transform will not be applied. I've been kind of busy (working on a Java project) so I haven't had time to check the documentation for a more elegant solution, but you can also use a a "dummy" value and then make a second call to set it to the IEN. But you shouldn't need to do that, === Gregory Woodhouse <[EMAIL PROTECTED]> Metaphors be with you. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] DINUM-ish question
--- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > Are you saying that it does not matter what value I put into the .01 > field, and that it will be overwritten such that it stores the newly > added records' IEN? > > Kevin > Yes, except that I'm not sure that DINUM applies to DBS calls. An input transform works by setting X to the value that should be used (or killing it to reject the value entirely). However, you need to be careful and not supply input as an internal value, because then the input transform will not be applied. I've been kind of busy (working on a Java project) so I haven't had time to check the documentation for a more elegant solution, but you can also use a a "dummy" value and then make a second call to set it to the IEN. But you shouldn't need to do that, === Gregory Woodhouse <[EMAIL PROTECTED]> Metaphors be with you. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] DINUM-ish question
Are you saying that it does not matter what value I put into the .01 field, and that it will be overwritten such that it stores the newly added records' IEN? Kevin On 5/16/06, Greg Woodhouse <[EMAIL PROTECTED]> wrote: --- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > I want to add a new record to file 50.67 (NDC/UPC) > > The .01 field has, in it's input transform set DINUM=X. > > My understanding of a DINUM record is that the .01 field=the record > number (IEN) of the record. > > OK, so how do I add a NEW record to the file? > > > TMGFDA(50.67,"+1,",.01)=??? <--- what goes here? > TMGFDA(50.67,"+1,",1)="Hello etc." > > do UPDATE^DIE("E","TMGFDA","TMGIEN","TMGMSG" > > What value do I set the .01 field to? > > Thanks > Kevin > You need to be sure to specify that external values are processed (I think it's the "E" flag), otherwise this call will work like four slash stuff. Beyond that, the value shouldn't matter -- use " ". BTW, the four slash stuff is another thing that I almost consider a mis-feature of Fileman. At the very least, it is vastly overused. === Gregory Woodhouse <[EMAIL PROTECTED]> Metaphors be with you. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] DINUM-ish question
Kevin, why not let Fileman creat the entry for you using FILE^DICN, this way you get the IEN you need passed bay to you for use in your DBS call(s). - Original Message - From: Gregory Woodhouse <[EMAIL PROTECTED]> Date: Tuesday, May 16, 2006 12:40 pm Subject: Re: [Hardhats-members] DINUM-ish question To: hardhats-members@lists.sourceforge.net Cc: [EMAIL PROTECTED] > > On May 15, 2006, at 10:53 PM, chuck5566 wrote: > > > I don't think you have to do anything different - simply set > that . > > 01 node (of TMGFDA) to the number you wish to use. > > > > Are you getting an error?If so, are you using the TMGIEN > array > > to define the IEN? > > Is the .01 field set to the IEN in the input transform? If so, I > think it would be enough to give it a value. If not, a brute force > > solution would be to get the IEN from the output array and then > make > a second call to set the .01 field to the IEN. > > Gregory Woodhouse > [EMAIL PROTECTED] > > Metaphors be with you. > > > --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] DINUM-ish question
--- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > I want to add a new record to file 50.67 (NDC/UPC) > > The .01 field has, in it's input transform set DINUM=X. > > My understanding of a DINUM record is that the .01 field=the record > number (IEN) of the record. > > OK, so how do I add a NEW record to the file? > > > TMGFDA(50.67,"+1,",.01)=??? <--- what goes here? > TMGFDA(50.67,"+1,",1)="Hello etc." > > do UPDATE^DIE("E","TMGFDA","TMGIEN","TMGMSG" > > What value do I set the .01 field to? > > Thanks > Kevin > You need to be sure to specify that external values are processed (I think it's the "E" flag), otherwise this call will work like four slash stuff. Beyond that, the value shouldn't matter -- use " ". BTW, the four slash stuff is another thing that I almost consider a mis-feature of Fileman. At the very least, it is vastly overused. === Gregory Woodhouse <[EMAIL PROTECTED]> Metaphors be with you. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] DINUM-ish question
On May 15, 2006, at 10:53 PM, chuck5566 wrote:I don't think you have to do anything different - simply set that .01 node (of TMGFDA) to the number you wish to use. Are you getting an error? If so, are you using the TMGIEN array to define the IEN? Is the .01 field set to the IEN in the input transform? If so, I think it would be enough to give it a value. If not, a brute force solution would be to get the IEN from the output array and then make a second call to set the .01 field to the IEN. Gregory Woodhouse[EMAIL PROTECTED]Metaphors be with you.
Re: [Hardhats-members] DINUM-ish question
I don't think you have to do anything different - simply set that .01 node (of TMGFDA) to the number you wish to use. Are you getting an error?If so, are you using the TMGIEN array to define the IEN? On May 15, 2006, at 8:54 PM, Kevin Toppenberg wrote: I want to add a new record to file 50.67 (NDC/UPC) The .01 field has, in it's input transform set DINUM=X. My understanding of a DINUM record is that the .01 field=the record number (IEN) of the record. OK, so how do I add a NEW record to the file? TMGFDA(50.67,"+1,",.01)=??? <--- what goes here? TMGFDA(50.67,"+1,",1)="Hello etc." do UPDATE^DIE("E","TMGFDA","TMGIEN","TMGMSG" What value do I set the .01 field to? Thanks Kevin --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members