Precisely Speaking
May 21, 2012, 08:05:41 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
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
Precisely Speaking
>
Training and Education
>
SB+ Programming Questions
>
Using SB+ TCL Synonyms
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Using SB+ TCL Synonyms (Read 3228 times)
precisonline
President/Chief Technologist
Administrator
Rock Star
Posts: 1532
Using SB+ TCL Synonyms
«
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
Re: Using SB+ TCL Synonyms
«
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!
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...
Re: Using SB+ TCL Synonyms
«
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
Re: Using SB+ TCL Synonyms
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> Getting To Know You
=> Announcements
=> Big Thoughts / Cool Ideas
=> Rants & Raves
-----------------------------
Application Support
-----------------------------
=> Red Leaf
=> Activant/Prelude Support
=> Summit Support
=> Avante Support
=> PRC Support
-----------------------------
Training and Education
-----------------------------
=> Connect!
=> U2 Programming Questions
=> SB+ Programming Questions
=> Web Programming Questions
=> Business Intelligence / MITS
=> PC / Hardware / Miscellaneous Support
Loading...