DCL programs

Post Reply

Topic author
soutbarr
Active Contributor
Posts: 30
Joined: Wed Mar 13, 2024 4:45 pm
Reputation: 0
Status: Offline

DCL programs

Post by soutbarr » Sat Apr 06, 2024 11:16 am

I'm really rusty at DCL, I've only written some very basic ones. Are there any repositories of DCL programs people have written to learn from? If not that's alright.

User avatar

cct
Master
Posts: 128
Joined: Sat Aug 15, 2020 9:00 am
Reputation: 0
Location: Cambridge, UK
Status: Offline

Re: DCL programs

Post by cct » Sat Apr 06, 2024 12:25 pm

You will find some limited examles in SYS$HELP, all over the system disk

Also Google is your friend - there is much on the Interweb. I lean't most about DCL prior to getting access to any of the documentation, using the help facility. The DCL Dictionary (see VSI web site - documentation) is good.
--
Chris


whcox53
Contributor
Posts: 12
Joined: Sat Aug 22, 2020 3:25 pm
Reputation: 0
Status: Offline

Re: DCL programs

Post by whcox53 » Sat Apr 06, 2024 3:18 pm

You might also look under the Community==>Freeware link and well as OpenSourceRepositories link. There are some utilities there written in DCL.
bill
-----------------
VMS user since 1979.


reinhardtjh
Active Contributor
Posts: 42
Joined: Sun Feb 23, 2020 7:49 am
Reputation: 0
Location: Fort Worth, TX USA
Status: Offline

Re: DCL programs

Post by reinhardtjh » Sat Apr 06, 2024 4:23 pm

One of the best ways would be to get a hold of "Writing Real Programs in DCL" by Hoffman (Hoff) and Anagnostopoulos. But a quick Google search shows the price of that book has skyrocketed. At least the 2nd edition has. It's out of print and I don't see any online archives of it. But if you can find one for a reasonable price, get it.

Actually, I see a few on Ebay for not horrible prices, though most are the 1st edition. It's not bad but the 2nd has been updated to a more modern version of VMS. Green (ish) cover is the 1st and the red(ish) toned cover is the 2nd.

What is a pity is that the code in the book is not available online. The book was published before that became common.

The Elsevier OpenVMS book series has some good ones. They used to have online code repositories but I can't find them now. I do see most of the books are now PDF which means you could cut and paste the code.

https://shop.elsevier.com/search?query= ... ubDateDesc

Neil Rieck's pages have programming examples - some in DCL
http://neilrieck.net/demo_vms_html/open ... index.html

The Wayback's copy of dcl.openvms.org (RIP).
https://web.archive.org/web/20040828080 ... envms.org/

Robert Gezelter's web site has some DCL examples, plus a lot of other good information
http://www.rlgsc.com/blog/openvms-consu ... ltant.html
John H. Reinhardt
  • VMS user since 1981

User avatar

arne_v
Master
Posts: 348
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Offline
Contact:

Re: DCL programs

Post by arne_v » Sat Apr 06, 2024 7:38 pm

DCL is a nice command language but not a good programming language.

Use DCL for interactive usage and for simple scripts that automate a sequence of commands.

$ HELP

is probably sufficient to learn that, But there are also a few relevant manuals:

https://docs.vmssoftware.com/vsi-openvm ... onary-a-m/ and https://docs.vmssoftware.com/vsi-openvm ... onary-n-z/ document all DCL commands.

But https://docs.vmssoftware.com/vsi-openvms-user-s-manual/ and https://docs.vmssoftware.com/guide-to-o ... lications/ may also be very relevant.

If you want to go to programming scripting, then at some level of complexity you are better off switching from DCL to Perl / Python / Groovy / whatever.

Added in 1 minute 57 seconds:
For programming examples I do have a few like:

https://www.vajhoej.dk/arne/info-vax/ut ... utilities/

https://www.vajhoej.dk/arne/info-vax/cgi/mgmt/
Arne
arne@vajhoej.dk
VMS user since 1986

User avatar

martin
Valued Contributor
Posts: 73
Joined: Tue Mar 22, 2022 6:47 pm
Reputation: 0
Location: England
Status: Offline

Re: DCL programs

Post by martin » Sun Apr 07, 2024 7:25 am

If you are going to program in DCL, spend time getting to grips with the lexical functions. They're not used much as an interactive command language, but if you look at the command procedures in SYS$HELP and SYS$MANAGER you'll see that they are used heavily. The same applies to subroutines.
Martin
  • Retired System Manager: VMS/UNIX/UNICOS/Linux.
  • Started on a VAX 11/782 in 1984 with VMS 3.6.

User avatar

imiller
Master
Posts: 151
Joined: Fri Jun 28, 2019 8:45 am
Reputation: 0
Location: South Tyneside, UK
Status: Offline
Contact:

Re: DCL programs

Post by imiller » Tue Apr 09, 2024 10:24 am

there was once a big collection of DCL at a website dcl.openvms.org which is sadly no more but can be found in the internet archive.

See https://web.archive.org/web/20061006041 ... rchive.php
Ian Miller
[ personal opinion only. usual disclaimers apply. Do not taunt happy fun ball ].


gl
Newbie
Posts: 3
Joined: Fri Jul 10, 2020 11:29 am
Reputation: 0
Status: Offline

Re: DCL programs

Post by gl » Sun Apr 21, 2024 4:57 pm

Hello

I used web archive and put a good number of them on

https://foss.vmsgenerations.org/gl/dcl-openvms-org

I do not remember if you need to create an account to access them.


reinhardtjh
Active Contributor
Posts: 42
Joined: Sun Feb 23, 2020 7:49 am
Reputation: 0
Location: Fort Worth, TX USA
Status: Offline

Re: DCL programs

Post by reinhardtjh » Sun Apr 21, 2024 5:16 pm

gl wrote:
Sun Apr 21, 2024 4:57 pm
Hello

I used web archive and put a good number of them on

https://foss.vmsgenerations.org/gl/dcl-openvms-org

I do not remember if you need to create an account to access them.
Thanks! and apparently you need an account.
gitlab wrote:You need to sign in or sign up before continuing.
John H. Reinhardt
  • VMS user since 1981


gl
Newbie
Posts: 3
Joined: Fri Jul 10, 2020 11:29 am
Reputation: 0
Status: Offline

Re: DCL programs

Post by gl » Mon Apr 22, 2024 7:38 am

115 procedures I count

Added in 2 hours 50 minutes 51 seconds:
I have modified the protection, you no longer need an account

Post Reply