Language DCL
(Digital Command Language OpenVMS V7.3-1)
Date: | 08/18/08 |
Author: | Javascribe |
URL: | n/a |
Comments: | 2 |
Info: | http://h71000.www7.hp.com/doc/732FINAL/9996/9996PRO.HTML |
Score: | (3.00 in 44 votes) |
$ bottle_count = 99 $ next_verse: $ call recite_verse 'bottle_count' $ bottle_count = bottle_count - 1 $ if bottle_count .ne. 0 then goto next_verse $ $ recite_verse: $ subroutine $ bottles = " bottle!-!0UL!1%C!%Es!%F " $ verse = "!/!UL" $ verse = verse + bottles $ verse = verse + "of beer on the wall, !-!UL" $ verse = verse + bottles $ verse = verse + "of beer." $ verse = verse + "!/Take one down and pass it around, " $ if p1 .ne. 1 $ then $ verse = verse + "!UL" $ verse = verse + bottles $ verse = verse + "of beer on the wall." $ else $ verse = verse + "no more bottles of beer on the wall." $ verse = verse + "!/!/No more bottles of beer on the wall, no more bottles of beer." $ verse = verse + "!/Go to the store and buy some more, 99 bottles of beer on the wall." $ endif $ write sys$output f$fao( verse, 'p1', 'p1-1' ) $ exit $ endsubroutine
Download Source | Write Comment
Alternative Versions
Version | Author | Date | Comments | Rate |
---|---|---|---|---|
for OpenVMS | Rik Steenwinkel | 04/20/05 | 0 | |
on VAX | Anonymous | 04/20/05 | 1 | |
for VMS | Anonymous | 04/20/05 | 0 |
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments
Kelley Johnston said on 07/15/09 07:00:00
Ahh, amazingly concise for something designed to control print and batch queues and drive the occasional Autogen or ACMSGen.
Although I would probably have used beers :== "''beer'" + "''plural'" to show off the easy symbol handling. F$FAO is elegant, but there was a pure joy to mastering the use of DCL symbols.
Love DCL, wrote about a quarter-million lines of it...Ok, now I'm going to go look up VCL and ... maybe, just maybe, BLISS...
JohnstonMarianne34 said on 05/15/10 01:36:18
This is great that people can get the <a href="http://lowest-rate-loans.com/topics/home-loans">lowest-rate-loans.com</a> and that opens up new opportunities.