T24 : Version Routine / How to write values into a LOCAL.REF.FIELDS

4,739 views
Skip to first unread message

M Rizwan

unread,
Dec 27, 2009, 7:05:09 AM12/27/09
to jB...@googlegroups.com
 
T24 R06 / JBASE 4.1 / AIX 5.2
 

How to write some values into local reference fields inside the version routine.
 
Assumption filed 97 is LOCAL.REF.
 
97.1 SCORE
97.2 GRADE
97.3 RATING
 
I want to write values only to the "GRADE" field.
I am using the following inside the version routine, but its not working. Can anybody please help.
 

CALL GET.LOC.REF(SL.FILE.NAME,"GRADE",Y.GRADE.POS)

R.NEW(SL.LN.LOCAL.REF,Y.GRADE.POS) = "AAA"

CALL REBUILD.SCREEN

 

Thanks

 

 

 

 
--
Rizwan

Jim Idle

unread,
Dec 28, 2009, 11:26:28 AM12/28/09
to jb...@googlegroups.com

Not in answer to your question but I hope that this does not mean attribute 97, values 1,2,3 as it means that the T24 file layout is in complete violation of the multi-value model. However, as only 0.05% of applications are not, then I suppose it doesn’t matter.

 

Jim

 

--
Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines
 
IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

JOSE L MARTINEZ-AVIAL

unread,
Dec 28, 2009, 11:35:29 AM12/28/09
to jb...@googlegroups.com
You should do
R.NEW(LOCAL.REF.FIELD)<1,LOCAL.REF.POSITION>= value

Where local ref field is the position of the local ref fielf in the
record, and local ref position is the position of the local ref in the
local ref field

2009/12/27, M Rizwan <raaif....@gmail.com>:


> T24 R06 / JBASE 4.1 / AIX 5.2
>
>
> How to write some values into local reference fields inside the version
> routine.
>
> Assumption filed 97 is LOCAL.REF.
>
> 97.1 SCORE
> 97.2 GRADE
> 97.3 RATING
>
> I want to write values only to the "GRADE" field.
> I am using the following inside the version routine, but its not working.
> Can anybody please help.
>

> *


>
> CALL GET.LOC.REF(SL.FILE.NAME,"GRADE",Y.GRADE.POS)
>
> R.NEW(SL.LN.LOCAL.REF,Y.GRADE.POS) = "AAA"
>
> CALL REBUILD.SCREEN
>
>
>
> Thanks
>
>
>
>
>
>

> *


>
> --
> Rizwan
>
> --
> Please read the posting guidelines at:
> http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> IMPORTANT: Type T24: at the start of the subject line for questions specific
> to Globus/T24
>
> To post, send email to jB...@googlegroups.com
> To unsubscribe, send email to jBASE-un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/jBASE?hl=en
>

--
Enviado desde mi dispositivo móvil

Rashid K.P

unread,
Dec 28, 2009, 1:12:19 PM12/28/09
to jb...@googlegroups.com
Hi,

   Change the assignment line as below

   R.NEW(SL.LN.LOCAL.REF)<1,Y.GRADE.POS> = "AAA"

Thanks and Regards,
Rashid

gabalian

unread,
Dec 30, 2009, 12:51:21 AM12/30/09
to jb...@googlegroups.com

Try this syntax

CALL GET.LOC.REF(SL.FILE.NAME,"GRADE",Y.GRADE.POS)

R.NEW(SL.LN.LOCAL.REF)<1,Y.GRADE.POS> = "AAA"

CALL REBUILD.SCREEN



--
Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines
 
IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en



--
Imran Khan
T24 Technical Consultant
+92 334 3545114
Reply all
Reply to author
Forward
0 new messages