DCL

OpenVMS - DELETE Line if TEXT like x

瘦欲@ 提交于 2019-12-25 04:23:09
问题 I have a batch script that is writing all files inclusive of path and version number to a TMP file for a physical device. This batch script then writes any lines that demonstrate a file version number greater than a provided variable. DIRECTORYX := DIRECTORY /NODATE /NOHEADING /NOTRAILING DIR_OUTPUT_FILENAME = "TOPAS$UTILLOG:" + F$UNIQUE() + ".TMP" DEVICE = $1$DGA1112 DIRECTORYX 'DEVICE':[000000...]*.*;* /NOSIZE /OUTPUT='DIR_OUTPUT_FILENAME' At the same time I have files to which I am not

Developing with C++ on OpenVMS

℡╲_俬逩灬. 提交于 2019-12-08 11:55:45
问题 I am looking at a C++ project on OpenVMS. How different is it from NIX development? Is it a bit like a peculiar UNIX version or LINUX distro? Any peculiarities when it comes to memory management or threading etc? (I know FILE I/O is a bit different). Are the C++ compilers a bit like older C++ versions on other platforms? (Less support for templates etc.) Can I use bash, without touching DCL? What about IDEs, debugging (gdb) source control etc? (It seams NetBeans are OK) Can I work remotely

How to store a result to a variable in HP OpenVMS DCL?

耗尽温柔 提交于 2019-12-02 06:42:21
问题 I want to save the output of a program to a variable. I use the following approach ,but fail. $ PIPE RUN TEST | DEFINE/JOB VALUE @SYS$PIPE $ x = f$logical("VALUE") I got an error: %DCL-W-MAXPARM, too many parameters - reenter command with fewer parameters \WORLD\ reference : How to assign the output of a program to a variable in a DCL com script on VMS? 回答1: The usual way to do this is to write the output to a file and read from the file and put that into a DCL symbol (or logical). Although

How to assign the output of a program to a variable in a DCL com script on VMS?

a 夏天 提交于 2019-11-29 17:09:38
For example, I have a perl script p.pl that writes "5" to stdout. I'd like to assign that output to a variable like so: $ x = perl p.pl ! not working code $ ! now x would be 5 The PIPE command allows you to do Unix-ish pipelining, but DCL is not bash. Getting the output assigned to a symbol is tricky. Each PIPE segment runs in a separate subprocess (like Unix) and there's no way to return a symbol from a subprocess. AFAIK, there's no bash equivalent of assigning stdout to a variable. The typical approach is to write (redirect) the output to a file and then read it back: $ PIPE perl p.pl > temp

How to assign the output of a program to a variable in a DCL com script on VMS?

Deadly 提交于 2019-11-28 10:38:40
问题 For example, I have a perl script p.pl that writes "5" to stdout. I'd like to assign that output to a variable like so: $ x = perl p.pl ! not working code $ ! now x would be 5 回答1: The PIPE command allows you to do Unix-ish pipelining, but DCL is not bash. Getting the output assigned to a symbol is tricky. Each PIPE segment runs in a separate subprocess (like Unix) and there's no way to return a symbol from a subprocess. AFAIK, there's no bash equivalent of assigning stdout to a variable. The

浅谈 DML、DDL、DCL的区别

拈花ヽ惹草 提交于 2019-11-27 07:44:06
一、DML DML(data manipulation language)数据操纵语言:     就是我们最经常用到的 SELECT、UPDATE、INSERT、DELETE。 主要用来对数据库的数据进行一些操作。 SELECT 列名称 FROM 表名称 UPDATE 表名称 SET 列名称 = 新值 WHERE 列名称 = 某值 INSERT INTO table_name (列1, 列2,...) VALUES (值1, 值2,....) DELETE FROM 表名称 WHERE 列名称 = 值 二、DDL DDL(data definition language)数据库定义语言:     其实就是我们在创建表的时候用到的一些sql,比如说:CREATE、ALTER、DROP等。DDL主要是用在定义或改变表的结构,数据类型,表之间的链接和约束等初始化工作上 CREATE TABLE 表名称 ( 列名称1 数据类型, 列名称2 数据类型, 列名称3 数据类型, .... ) ALTER TABLE table_name ALTER COLUMN column_name datatype DROP TABLE 表名称 DROP DATABASE 数据库名称 三、DCL DCL(Data Control Language)数据库控制语言:    

DDL、DML和DCL 区别与理解

丶灬走出姿态 提交于 2019-11-26 19:56:59
这篇文章主要介绍了DDL、DML和DCL的区别与理解,需要的朋友可以参考下 DML、DDL、DCL区别 . 总体解释: DML(data manipulation language): 它们是SELECT、UPDATE、INSERT、DELETE,就象它的名字一样,这4条命令是用来对数据库里的数据进行操作的语言 DDL(data definition language): DDL比DML要多,主要的命令有CREATE、ALTER、DROP等,DDL主要是用在定义或改变表(TABLE)的结构,数据类型,表之间的链接和约束等初始化工作上,他们大多在建立表时使用 DCL(Data Control Language): 是数据库控制功能。是用来设置或更改数据库用户或角色权限的语句,包括(grant,deny,revoke等)语句。在默认状态下,只有sysadmin,dbcreator,db_owner或db_securityadmin等人员才有权力执行DCL 详细解释: 一、DDL is Data Definition Language statements. Some examples:数据定义语言,用于定义和管理 SQL 数据库中的所有对象的语言 1.CREATE - to create objects in the database 创建 2.ALTER - alters the