VMS batch compile tricks 'n' tips. Have any?

palandri@4j.lane.edu palandri@4j.lane.edu
Sun, 03 Aug 2003 18:22:05 -0700 (PDT)


I haven't done it for a while, but here are some coms that work for a small 
system,  definately not as sophisticated as a parser.



SUBDEVL: type build.com
!**********************************************************************
! BUILD.COM: Compiles all SUB source
! MAP 17-Jul-1996
!
! For recompilation to work smoothly, please make sure that:
!
! 1. All SBA source is in a directory pointed to by logical SUB_SRC
! 2. This file, COMPILEQK.COM, COMPILEQTQZ.COM, COMPILEQTQZ1.USE,
!    COMPILEQTQZ2.USE are in a directory pointed to by SUB_UTL.
!
!**********************************************************************
$ @SUB_UTL:COMPILEQK.COM
$ @SUB_UTL:COMPILEQTQZ.COM
$ EXIT



!**************************************************************************
! COMPILEQK.COM: Compile SUB Quick source
!
!
!**************************************************************************
$ SET DEF SUB_SRC
$ QDESIGN
USE CHOOSE_SYSTEM_USER.QKS NOL
USE CHOOSE_USER_ID.QKS  NOL
USE CHOOSE_WORK_LOC.QKS NOL
USE GUSK300.QKS NOL
USE SUBK000.QKS NOL
USE SUBK001.QKS NOL
USE SUBK010.QKS NOL
USE SUBK015.QKS NOL
USE SUBK020.QKS NOL
USE SUBK030.QKS NOL
USE SUBK110.QKS NOL
USE SUBK120.QKS NOL
USE SUBK121.QKS NOL
USE SUBK122.QKS NOL
USE SUBK123.QKS NOL
USE SUBK124.QKS NOL
USE SUBK125.QKS NOL
USE SUBK140.QKS NOL
USE SUBK141.QKS NOL
USE SUBK142.QKS NOL
USE SUBK144.QKS NOL
USE SUBK180.QKS NOL
USE SUBK182.QKS NOL
USE SUBK200.QKS NOL
USE SUBK201.QKS NOL
USE SUBK401.QKS NOL
USE SUBK402.QKS NOL
USE SUBK403.QKS NOL
USE SUBK404.QKS NOL
USE SUBK405.QKS NOL
USE SUBK406.QKS NOL
USE SUBK410.QKS NOL
USE SUBK421.QKS NOL
USE SUBK422.QKS NOL
USE SUBK430.QKS NOL
USE SUBK431.QKS NOL
USE SUBK450.QKS NOL
USE SUBK501.QKS NOL
USE SUBK510.QKS NOL
USE SUBK700.QKS NOL
USE SUBK701.QKS NOL
USE SUBK702.QKS NOL
USE SUBK703.QKS NOL
USE SUBK704.QKS NOL
USE SUBK705.QKS NOL
USE SUBK706.QKS NOL
USE SUBK900.QKS NOL
USE SUBK901.QKS NOL
USE SUBK902.QKS NOL
USE SUBK903.QKS NOL
USE SUBK904.QKS NOL
USE SUBK905.QKS NOL
USE SUBK906.QKS NOL
USE SUBK907.QKS NOL
USE SUBK908.QKS NOL
$ EXIT




SUBDEVL: type COMPILEQTQZ.COM
!************************************************************************
! COMPILEQTQZ.COM: Subfile aware compile of SUB Quiz & QTP
!
! Compiles a sequence of QTP and Quiz programs to handle subfile
! dependancies.
!
! COMPILEQTQZ.COM  (This file)
!  Compiles all QTP, creates
! COMPILEQTQZ1.USE
!  Invokes Quiz as a subprocess of QTP.  Runs COMPILEQTQZ2.USE on its
!  AUTO= clause.
! COMPILEQTQZ2.USE
!  Compiles all Quiz
!
!************************************************************************
$ SET DEF SUB_SRC
$ QTP NOLIST
USE SUBT001.QTS NOL
USE SUBT104.QTS NOL
USE SUBT201.QTS NOL
USE SUB_UTL:COMPILEQTQZ1.USE NOL




SUBDEVL: type COMPILEQTQZ1.USE
;************************************************************************
; COMPILEQTQZ1.USE: Compiles SUB QTP & Quiz
; See COMPILEQTQZ.COM for doc.
;************************************************************************
$ QUIZ AUTO=SUB_UTL:COMPILEQTQZ2.USE
$ EXIT






SUBDEVL: type COMPILEQTQZ2.USE
;************************************************************************
; COMPILEQTQZ1.USE: Compiles SUB QTP & Quiz
; See COMPILEQTQZ.COM for doc.
;************************************************************************
USE SUBZ001.QZS NOL
USE SUBZ100.QZS NOL
USE SUBZ101.QZS NOL
USE SUBZ102.QZS NOL
USE SUBZ103.QZS NOL
USE SUBZ104.QZS NOL
USE SUBZ105.QZS NOL
USE SUBZ200.QZS NOL
USE SUBZ201.QZS NOL
USE SUBZ202.QZS NOL
USE SUBZ203.QZS NOL


























> I used to have a really neat VMS dcl script, which would parse a text
> file full of QTP/QUIZ/QDESIGN files and compile them. It also had the
> ability to compile QUIZs and QTP that use subfiles, for which are not
> kept (ie: without the KEEP verb). Manually I have to do this by
> starting another session via the '$' command.
> ie:
> 	$QTP
> 	use program.qts nol
> 	use program-b.qts nol
> 	$$quiz
> 	use program-with-qtp-subfile.qzs nol
> 	etc
> 	etc
> 
> Unfortunately in trying to put this into a DCL batch job, it crashes at
> the $$QUIZ stage because it is trying to interpret the command from
> within the same session.
> 
> Does anyone have such a dcl around?
> 
> Thanks
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l@lists.swau.edu
> Subscribe: "subscribe" in message body to
> powerh-l-request@lists.swau.edu Unsubscribe: "unsubscribe <password>"
> in message body to powerh-l-request@lists.swau.edu
> http://lists.swau.edu/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you must be a subscriber.