Questions tagged [dcl]

DCL is the language for command lines and batch files of RSX and VMS operating systems; it stands for Digital Command Language (*Digital* was a computer and software vendor 1958-1998).

DIGITAL Command Language is the standard command language adopted by most of the DEC operating systems. It evolved from the IAS, TOPS-20, and RT-11 operating systems and was implemented as a standard across most of Digital's operating systems, notably RSX-11, but took its most powerful form in the operating system.

DCL is a scripting language supporting several datatypes, including strings, integers, bit arrays, arrays, and booleans, but not floating point numbers. Access to OpenVMS system services (kernel API) is through lexical functions, which perform the same as their compiled language counterparts and allow scripts to get information on system state. DCL includes IF-THEN-ELSE, access to all the RMS file types including stream, indexed, and sequential, but unfortunately lacks a DO-WHILE or other looping construct, requiring users to make do with IF and GOTO-label statements instead.

Indirect variable references are possible. Though it largely resembles most other scripting languages, one of its most unique attributes is how a batch file is treated differently from a terminal command input with regard to commands and pure data:

$ TYPE SYS$INPUT:
This is an example of using the TYPE verb
in the DCL language.
$ EXIT

Command files are extremely powerful and convenient for performing many system operations, including privileged operations. Many system functions are implemented by command file due to the great challenge of writing an equivalent program using the (unwieldy) system API.

References:

DCL related tags

39 questions
0
votes
2 answers

dcl assignment from a command

I am new to DCL. I want to get the out put of a command in a variable and iterate result one by one. filePath=dir /since="time_now" [.SUBDIR]*.PNG/noheader/notrail
kbang
  • 694
  • 9
  • 25
0
votes
2 answers

OpenVMS - DELETE Line if TEXT like x

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 :=…
Marcus Culver
  • 305
  • 1
  • 4
  • 8
0
votes
3 answers

Deleting first four lines in a file in openvms ---> Dcl scripting

Suppose i have a file name Trialcr.txt PAR875:FXOV003506A_02> typ trialcr.txt Classes in CMS Library DISK_FXOCMS:[fxo.CMS.LIBS.FXO_LIV.SRC] FXO_CR012123 "FXO_CR1232 : FXOME-sfsfsfsf dasdad " ABC.COM 2 PQ.BSQL 1 I want to delete the first…
tejas shah
  • 11
  • 2
0
votes
4 answers

Why a static singleton is a simple and elegant solution to avoid 'DCL'?

When need a singleton, is a static field a elegant solution? class HelperSingleton { static Helper singleton = new Helper(); public static Helper getInstance() { return singleton; } } When two threads access to getInstance at the…
znlyj
  • 1,109
  • 3
  • 14
  • 34
0
votes
1 answer

Sending signals from DCL command line on OpenVMS

I'm trying to send a signal via the command line on an OpenVMS server. Using Perl I have set up signal handlers between processes and Perl on VMS is able to send Posix signals. In addition, C++ programs are able to send and handle signals too.…
Zeroshade
  • 463
  • 2
  • 8
0
votes
2 answers

DCL sort - different start positions

I have a DCL script that creates a .txt file that looks something like this something,somethingelse,00000004 somethingdifferent,somethingelse1,00000002 anotherline,line,00000015 I need to sort the file by the 3rd column highest to…
user1943219
  • 396
  • 2
  • 5
  • 19
0
votes
2 answers

trapping SIGABRT from perl on VMS

Given kill.pl: $SIG{INT} = sub { print "int\n" }; $SIG{TERM} = sub { print "term\n" }; $SIG{ABRT} = sub { print "abort\n" }; print "sleeping...\n"; sleep 60; And kill.com: $ perl kill.pl And launching+aborting like so: submit /log_file=kill.log…
Jason
  • 681
  • 1
  • 9
  • 19
0
votes
2 answers

dcl verify specific lines in DCL

Using DCL, i have a .txt file with 3 lines Line 1 test. Line 2 test. Line 3 test. I'm trying to very that each contains exactly what is expected. I'm currently using the f@extract function which will give me the output of line 1 but i cannot…
user1943219
  • 396
  • 2
  • 5
  • 19
0
votes
1 answer

Developing with C++ on OpenVMS

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…
Olav
  • 1,758
  • 4
  • 27
  • 49
1 2
3