Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

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 36 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

VersionAuthorDateCommentsRate
for OpenVMSRik Steenwinkel04/20/050
on VAXAnonymous04/20/051
for VMSAnonymous04/20/050

Comments

>>  Kelley Johnston said on 07/15/09 07:00:00

Kelley Johnston 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

JohnstonMarianne34 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.

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!

Name:

eMail:

URL:

Security Code:
  
Comment: