Title: | *OLD* ALL-IN-1 (tm) Support Conference |
Notice: | Closed - See Note 4331.l to move to IOSG::ALL-IN-1 |
Moderator: | IOSG::PYE |
Created: | Thu Jan 30 1992 |
Last Modified: | Tue Jan 23 1996 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 4343 |
Total number of notes: | 18308 |
hello a1 victims, according to my problem mentioned in 641.0 i have another problem. in a show of a recognition (or alias in phant.dset) i want to make a reference to a second dset. /show="dset.field[.myfield] that works fine. but when my key of that second dset is a segmented key, i have some problems. normally i do a get #skey = #key1 #key2 get #any = dset.field[#skey] but in that /show above i cant do those gets. i tried: #a = "#b #c" .... /show="dset.field[@#a] but it does not work. can anyone help me ????? before you answer, get a nice weekend !! regards Gerhard Marsing
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
653.1 | Try dset.field[#key1 #key2] | HOTAIR::MADDOX | When in doubt, change it | Fri May 08 1992 16:21 | 0 |
653.2 | You can't get there from here? | SHALOT::LANPHEAR | Test the water or turn the tide? | Fri May 08 1992 17:41 | 30 |
I tried a few combinations with indirection, and it seems that neither 'get dsab.field[@#sym]' nor '/ALIAS=dsab.field[@#sym]' can correctly decode the indirection for complex expressions... For example, get #b="ALLIN1" get #u="SHALOT" get #g=#b:30 #u get network.fulnam[#g] -> produces the correct result However, get #g='#b:30 #u' get network.fulnam[@#g] -> produces INVGET, invalid get and get #g='#b:30 #u' get #o=@#g get network.fulnam[#o] -> produces the correct result again Now if you _end_ the indirection with a literal, it _really_ gets confused, such as: get #b='oa$scroll_key "1"' get dsab.field[@#b] -> returns "sk1]" where sk is the evaluated oa$scroll_key, and ] shows how confused it is. FWIW, it works the same for either V2.4 or V3.0. I'm sure someone more knowledgeable will correct me, but it looks like a bug... Cheers, Dan'l | |||||
653.3 | A possibly way | SHALOT::WARFORD | Richard Warford @OPA DTN 393-7495 | Fri May 08 1992 23:14 | 7 |
Or possibly: /SHOW="OA$FUNCTION='GET #a = #B:x #c' dsab.field[#a]" I haven't tried this but it MIGHT work? Also the .1 notes might work. Rick | |||||
653.4 | .1 and .3 dont work, sorry | NBOIS::MARSING | Gerhard Marsing @NBO | Mon May 11 1992 09:33 | 1 |
653.5 | Write your own | WAYLND::HOWARD | Ben. It should do what people expect it to do | Wed May 20 1992 21:52 | 6 |
You might want to roll your own recognition with /RECOG=<function. You would have to display the form, and process the selection in there, but it can be done. You could even put it into an XOP or a script to make it as long as you want. Ben |