[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

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

653.0. "/show="ent.fld[@#search]" by NBOIS::MARSING (Gerhard Marsing @NBO) Fri May 08 1992 14:27

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.RTitleUserPersonal
Name
DateLines
653.1Try dset.field[#key1 #key2]HOTAIR::MADDOXWhen in doubt, change itFri May 08 1992 16:210
653.2You can't get there from here?SHALOT::LANPHEARTest the water or turn the tide?Fri May 08 1992 17:4130
    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.3A possibly waySHALOT::WARFORDRichard Warford @OPA DTN 393-7495Fri May 08 1992 23:147
    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, sorryNBOIS::MARSINGGerhard Marsing @NBOMon May 11 1992 09:331
653.5Write your ownWAYLND::HOWARDBen. It should do what people expect it to doWed May 20 1992 21:526
    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