Precisely Speaking
May 21, 2012, 08:05:41 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: So what's news with you?  Tell us about it in "Getting To Know You"!
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Using SB+ TCL Synonyms  (Read 3228 times)
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« on: November 12, 2007, 01:01:18 PM »

I was happening to be browsing the SB+ READMEs lately and noticed a feature that I had long forgotten in SB+'s /TCL process.  If you happen to have a command that's difficult to type correctly, or just too long and you don't want to type it over and over again, you can use == to assign the command to something shorter and/or easier to type.  For example, try entering this at TCL:

SV == SORT VOC WITH F1 = "F]" "DIR]" F2 F3

Then enter SV at the next TCL prompt and you'll see the results.  These definitions - which SB+ calls "synonyms" - are in DMSECURITY under the name $SYN*userId and apparently stay around forever.  This is easier than creating a proc or paragraph - as long as you're using SB+'s /TCL to execute commands.  Even more useful, these can be fragments of commands (like SEL == SELECT) or (GL == GET.LIST) to make typing easier!

Oh, and if you don't want the synonym any longer, you can enter SV == to make it go away.
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
GBoiceJr
Newbie
*
Posts: 4



« Reply #1 on: November 13, 2007, 08:17:44 AM »

Kevin,

My co-worker, Bill Hollar and I tried this and WOW!  What a really nice tool!   

Thanks for sharing this! Smiley

Grant W. Boice, Jr.  (GBoiceJr)
Logged

"You want peace, then destroy the enemy!"  -- ABC Radio Talkshow Host, Mark Levin
DonQuixote
Rock Star
*****
Posts: 108


To Dream the Impossible Dream...


« Reply #2 on: December 16, 2009, 01:51:22 PM »

is there a way to get the list of all your 'synonyms'?
Nice feature, thanks.
Logged
Tom Pellitieri
Rock Star
*****
Posts: 171


Tom Pellitieri - Toledo, Ohio


« Reply #3 on: December 16, 2009, 02:01:17 PM »

One way would be to do a raw listing.  In UniData:

LIST DMSECURITY "$SYN*user.id" F2 F3 FMT "40L" ID-SUPP

Not the prettiest, but it works.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!