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
1
vote
2 answers

DCL information between process and subprocess

I'm trying to pass information between main process and subprocess ( learning how this all works in the process) I need to get information from the subprocess, in this case the value of g_start. This is the way i seen online to handle this, if…
user1943219
  • 396
  • 2
  • 5
  • 19
1
vote
5 answers

waiting on background subprocesses in DCL on VMS

I am looking for a way to launch several background processes to run in parallel with DCL. I would want to wait for them all to complete and know whether they all succeeded or at least one failed. This would be like using & and wait in bash. I read…
Jason
  • 681
  • 1
  • 9
  • 19
1
vote
2 answers

How do I search text in a file with DCL

How do I search text in a file with DCL? Yes, I have to use DCL. The file format is straight forward: . . . They're separated by a few white space characters. I just need to…
BobbyA
  • 2,090
  • 23
  • 41
0
votes
3 answers

How do I call a Perl function from a DCL script?

I have a DCL script where I need to call a Perl function located in a Perl script. How do I do that and capture the output of that Perl function in the DCL script? I know I can probably call the Perl script as follows: $ perl my_perl_script.pl But…
Golam Kawsar
  • 760
  • 1
  • 8
  • 21
0
votes
1 answer

Wait command in DCL before executing next command

Is there a command in DCL that will wait for a specified amount of time before executing the next command. I am making a simple command file that will ping a user specified IP Address, wait 5 seconds then repeat the ping process. Currently I have…
hymcode
  • 71
  • 4
  • 13
0
votes
1 answer

How to create a countdown timer in DCL - OpenVMS

I wrote a script which will send an OTP (One Time Password) to users Mail ID. So whenever System sends the OTP to the user, I want to start a countdown timer of 1 Minute. But am not sure how to start the Countdown timer using DCL Scripting..Any Idea…
0
votes
1 answer

How to store the input entered by user and then use it as a SQL input in DCL -- OpenVMS

My requirement is -- I need to take input from the user (will take two fields as Input) and then i will store the input in a symbol.. But the problem is -- Am not able use the symbol in SQL Query... $ start: $ INQUIRE REF "Enter Emp_ID" $…
0
votes
1 answer

Need to give option Y or N in DCL scripting

My requirement is -- I need to give two options(yes or no) to users. So whenever user enters other than Y or N then system should throw an error. I created the below piece of code, but it is not giving the expected output. $ Y:== y $ N:== n $…
0
votes
4 answers

How to read a Executable(.EXE) file in OpenVMS

When am trying to open any .EXE file am getting information in encoded form. Any idea how to see the content of an .EXE file ????
0
votes
0 answers

DCL, OpenVMS --> Error during running an Executable

I am trying to run an executable file using --> @NH1060.COM and the NH1060.com contains the below code: SET PROCESS/NAME = "Watch" RUN R2_EXE:NH1060.EXE But when am running the NH1060 Com, the com is neither giving any errors nor the executable is…
0
votes
2 answers

DCL Programming - Remote connections

First, I am a total newb, and shouldn't be allowed around a keyboard. That said, I am trying to write a DCL .COM file that will allow a user to connect to a remote device by selecting it from a list. All I want to do is allow them to pick a…
DCL Newb
  • 3
  • 2
0
votes
3 answers

Running a program with parameters in DCL and saving the output

I'm trying to run a program and get the output value in DCL. In Linux platform script like below result=$(./tool -e $parameter1 $parameter2 ) echo "result:" $result I try to do the same script in HP openVMS platform but fail. Could anyone provide a…
0
votes
2 answers

Determine application executable artifact scope through monitoring on OpenVMS

We have a legacy COBOL application based on OpenVMS for-which we do not have a clear idea of configuration. In this context, by "configuration" I am talking about: Which executable files comprise the application; Which pristine source files…
Eric Smith
  • 5,262
  • 2
  • 33
  • 49
0
votes
2 answers

remote data & query to OpenVMS RMS files

What options exist to query RMS files in OpenVMS? The context for the query/access would be for BI & reporting. Currently, a very old FOCUS (Infomation Builders, v. 6.9.8) is in use, and that only from within the native OpenVMS command line…
Odj fourth
  • 649
  • 1
  • 9
  • 16
0
votes
3 answers

How to list directories on an OpenVMS volume

I've been searching Google as well as the OpenVMS System Administrator's Guide and User Guide, and still can't find anything regarding listing the directories present on an OpenVMS volume. I can't see how this could taken for granted in the docs,…
grobe0ba
  • 1
  • 1
  • 1