aboutsummaryrefslogtreecommitdiff
path: root/pkg/utilities/nttools/tedit/tread.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/utilities/nttools/tedit/tread.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/utilities/nttools/tedit/tread.x')
-rw-r--r--pkg/utilities/nttools/tedit/tread.x31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkg/utilities/nttools/tedit/tread.x b/pkg/utilities/nttools/tedit/tread.x
new file mode 100644
index 00000000..620c203a
--- /dev/null
+++ b/pkg/utilities/nttools/tedit/tread.x
@@ -0,0 +1,31 @@
+# T_TREAD -- Read only table editor
+
+procedure t_tread ()
+
+#--
+pointer table # SDAS table name
+pointer columns # list of columns to edit
+bool silent # don't ring bell when error occurs
+
+bool rdonly,inplace
+pointer sp
+
+bool clgetb()
+
+begin
+ call smark (sp)
+ call salloc (table, SZ_FNAME, TY_CHAR)
+ call salloc (columns, SZ_FNAME, TY_CHAR)
+
+ call clgstr ("table", Memc[table], SZ_FNAME)
+ call clgstr ("columns", Memc[columns], SZ_FNAME)
+
+ silent = clgetb ("silent")
+ rdonly = true
+ inplace = true
+
+ call edit (Memc[table], Memc[columns], silent, rdonly, inplace)
+ call sfree (sp)
+
+end
+