[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference clt::mms

Title:MMS general interest file
Notice:Current version: V3.1-03 (see Note 3.2)
Moderator:EDSDS6::TOWNSEND
Created:Mon Feb 03 1986
Last Modified:Wed May 14 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1385
Total number of notes:4654

1377.0. "Difference ALPHA vs VAX" by SWETSC::EKLUND (On a clear day you can see forever) Tue Mar 18 1997 11:19

     Hi,
    
        Usage of the MMS files in the next two replies will demonstrate a
        difference between ALPHA compared to VAX. ALPHA/VMS is V6.2 and
        VAX/VMS is V6.1. MMS is V3.1-03 on both.
    
        If there is no .C file in the current directory and no .OBJ and no
        .EXE, ie. no targets, then MMS on ALPHA won't do anything. But on
        VAX it will fetch the element from CMS and build the targets.
    
        Why is the behaviour different ?
    
        regards
        Johan
T.RTitleUserPersonal
Name
DateLines
1377.2Extract as CBRULES.MMSSWETSC::EKLUNDOn a clear day you can see foreverTue Mar 18 1997 11:21309
!******************************************************************************
! Namn	     : CBRULES.mms
! F�rfattare : Ann-Sofie B�ckman, Cap Programator
! Datum      : 1996-04-10
!------------------------------------------------------------------------------
! Logiska namn : CMS$LIB
! Beskrivning  : Regler f�r att h�mta kod fr�n CMS samt default-regel f�r esqlc
!------------------------------------------------------------------------------
! �ndringslogg :
! 1996-08-30  A-S B�ckman  Kompletterat med nu filtyp .aat.
! 1996-09-02  A-S B�ckman  Kompletterat med nu filtyp .kbd.
! 1996-09-02  A-S B�ckman  Kompletterat med nu filtyp .mdf.
! 1996-09-24  A-S B�ckman  Tyv�rr m�ste en default-regel f�r .c.obj l�ggas
!			   till f�r att klara kompilering i ALPHA/VMS.
!			   Eftersom man ej kan g� fr�n .sc till .obj
!			   utan att f�rst�ra datum-kontrollen av filer.!
!******************************************************************************
.SUFFIXES : .aat .aft .amt .aot .c .com .dat .def .for .frs .h .hlb \
	.hsqr .in .ing .ir .kbd .mak .map .mdf .olb .opt .osq \
	.release_notes .sc .sql .sqr \
	.aat~ .aft~ .amt~ .aot~ .c~ .com~ .dat~ .def~ .for~ .frs~ .h~ .hlb~ \
	.hsqr~ .in~ .ing~ .ir~ .kbd~ .mak~ .map~ .mdf~ .olb~ .opt~ .osq~ \
	.release_notes~ .sc~ .sql~ .sqr~

! Default-regel f�r esqlc och CC
.sc.c 
	esqlc -o.inc -# $<

.c.obj
	if f$getsyi("node_hwtype") .eqs. "ALPH" then -
	CC/STANDARD=VAXC $(CFLAGS) $*.c
	if f$getsyi("node_hwtype") .nes. "ALPH" then -
	CC/STANDARD=VAXC $(CFLAGS) $*.c


! Nedanst�ende regler f�r att h�mta kod fr�n CMS f�ljer de principer som 
! finns f�r MMS. 

.aat~.aat	
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).AAT $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	   
	mms$cmslib .NES. " $(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.aft~.aft
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).AFT $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	  
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.amt~.amt
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).AMT $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	   
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.aot~.aot
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).AOT $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	  
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.c~.c
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).C $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	   
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.com~.com
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).COM $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	  
	 mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.dat~.dat
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).DAT $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	  
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.def~.def
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).DEF $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	   
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.for~.for
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -		
	/OUTPUT=$(MMS$TARGET_NAME).FOR $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	   
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.frs~.frs
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).FRS $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	  
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.h~.h
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).H $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	   
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.hlb~.hlb	
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).HLB $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	  
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.hsqr~.hsqr
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).HSQR $(CMSFLAGS) $(CMSCOMMENT)	
	IF mms$cmslib .NES. "" .AND. -	  
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.in~.in	
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).IN $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	  
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.ing~.ing	
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).ING $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.ir~.ir	
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).IR $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	  
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.kbd~.kbd
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).KBD $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	   
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.mak~.mak
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).MAK $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	  
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.map~.map
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).MAP $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	 
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.mdf~.mdf
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).MDF $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.olb~.olb
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).OLB $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.opt~.opt
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).OPT $(CMSFLAGS) $(CMSCOMMENT)	
	IF mms$cmslib .NES. "" .AND. -	   
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.osq~.osq
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).OSQ $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	  
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.release_notes~.release_notes
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	 
	/OUTPUT=$(MMS$TARGET_NAME).RELEASE_NOTES -	
	$(CMSFLAGS) $(CMSCOMMENT)	
	IF mms$cmslib .NES. "" .AND. -
	   mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.sc~.sc
	mms$cmslib :== 'f$trnlnm("CMS$LIB")	
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).SC $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.sql~.sql
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -
	/OUTPUT=$(MMS$TARGET_NAME).SQL $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -
	   mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'

.sqr~.sqr
	mms$cmslib :== 'f$trnlnm("CMS$LIB")
	IF mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY $(MMS$CMS_LIBRARY)	
	$(CMS) FETCH $(MMS$CMS_ELEMENT) -	
	/OUTPUT=$(MMS$TARGET_NAME).SQR $(CMSFLAGS) $(CMSCOMMENT)
	IF mms$cmslib .NES. "" .AND. -	 
	mms$cmslib .NES. "$(MMS$CMS_LIBRARY)" THEN -	
	$(CMS) SET LIBRARY 'mms$cmslib'
    
1377.3Extract as anything.MMSSWETSC::EKLUNDOn a clear day you can see foreverTue Mar 18 1997 11:2526
! You need to change some line below to match your directory structure 
    ! and you will of course need a cms library 
! Att inkludera
.INCLUDE CBRULES.MMS

! Bibliotek
EXE = USR:[EKLUND.BANV.EXE]	!!!! Need a change

! Debugflaggor
DBGFLAG=
OPTFLAG=

! Kompileringsflaggor till CC
CFLAGS = $(DBGFLAG)$(OPTFLAG)

!Vilka objekt som ska skapas
OBJS = PCLADDA.OBJ

!Skapa exefile och h�mta tillh�rande filer
ALL : $(EXE)PCLADDA.EXE
	@! No action to be performed

!Exefilens beroende och action line
$(EXE)PCLADDA.EXE : $(OBJS)
	LINK$(LDFLAGS)$(DBGFLAG)/EXE=$(EXE)PCLADDA.EXE $(OBJS)!,$(LIBS)
    
1377.4Need more informationEDSDS6::WANGJames - DECset EngineeringTue Mar 18 1997 14:2240
Hi, 

-> If there is no .C file in the current directory and no .OBJ and no
->        .EXE, ie. no targets, then MMS on ALPHA won't do anything.

I can't reproduce the problem here. What kind of message did you get on Alpha ?

To investigate the problem, could you supply your log file to us. 
we would like to take a look.

-James


Here is the step I used to run the MMS with your files:

$ cms set lib [.cms]
%CMS-I-LIBIS, library is $1$DIA3:[WANG.TODAY.CMS]
%CMS-S-LIBSET, library set

$ dir
Directory $1$DIA3:[WANG.TODAY]

CBRULES.MMS;3       CMS.DIR;1           MY.MMS;4  

$ mms/cms/description=my/rules=CBRULES.MMS

mms$cmslib :== 'f$trnlnm("CMS$LIB")
IF mms$cmslib .NES. "$1$DIA3:[WANG.TODAY.CMS]" THEN     CMS SET LIBRARY $1$DIA3:
[WANG.TODAY.CMS]
CMS FETCH PCLADDA.C     /OUTPUT=PCLADDA.C /GEN=1+ ""
%CMS-S-FETCHED, generation 1 of element $1$DIA3:[WANG.TODAY.CMS]PCLADDA.C fetche
d
IF mms$cmslib .NES. "" .AND.    mms$cmslib .NES. "$1$DIA3:[WANG.TODAY.CMS]" THEN
        CMS SET LIBRARY 'mms$cmslib'
if f$getsyi("node_hwtype") .eqs. "ALPH" then    CC/STANDARD=VAXC  PCLADDA.c
.
.
Notes: The element PCLADDA.C did fetched from the cms library. 


1377.5Here's our situationSWETSC::EKLUNDOn a clear day you can see foreverWed Mar 19 1997 02:01107
    Hi,
    
    Thanks for looking at this situation. 
    
    First, let me show you my output on ALPHA:
    
    AGNE> dire [...]
    
    Directory USR:[EKLUND.BANV]
    
    BANV.MMS;16                    2  18-MAR-1997 14:54:18.92  [VMS,EKLUND]
    CBRULES.MMS;11                23  18-MAR-1997 15:10:34.41  [VMS,EKLUND]
    EXE.DIR;1                      1  14-MAR-1997 14:02:22.41  [VMS,EKLUND]
    P.C;1                          1  17-MAR-1997 11:29:11.47  [VMS,EKLUND]
    
    Total of 4 files, 27 blocks.
    AGNE> mms/desc=banv/log/cms
    %MMS-I-DRVOUTFIL, Using output file SYS$OUTPUT:.;.
    %MMS-I-DRVDEPFIL, Using description file USR:[EKLUND.BANV]BANV.MMS;16.
    %MMS-I-DRVFMSSUP, DEC/MMS is installed with support for VAX FMS.
    %MMS-I-DRVSUBCLI, Using DCL for the subprocess CLI.
    %MMS-I-DRVQUALIF, Using non-defaulted qualifiers /Log/Cms.
    %MMS-I-GWKBEGWLK, Starting the build at target ALL.
    %MMS-I-GMTIMFND, Time for PCLADDA.OBJ is 17-NOV-1858 00:00:00.00.
    %MMS-F-GWKNOPRN, There are no known sources for the current target
    PCLADDA.OBJ.
    AGNE>
    
    
    and then on VAX:
    ARNE% dire [...]
    
    Directory USR:[EKLUND.BANV]
    
    BANV.MMS;16                    2  18-MAR-1997 14:54:18.92  [VMS,EKLUND]
    CBRULES.MMS;11                23  18-MAR-1997 15:10:34.41  [VMS,EKLUND]
    EXE.DIR;1                      1  14-MAR-1997 14:02:22.41  [VMS,EKLUND]
    P.C;1                          1  17-MAR-1997 11:29:11.47  [VMS,EKLUND]
    
    Total of 4 files, 27 blocks.
    ARNE% mms/log/desc=banv/CMS
    %MMS-I-DRVOUTFIL, Using output file SYS$OUTPUT:.;.
    %MMS-I-DRVDEPFIL, Using description file USR:[EKLUND.BANV]BANV.MMS;16.
    %MMS-I-DRVFMSSUP, DEC/MMS is installed with support for VAX FMS.
    %MMS-I-DRVSUBCLI, Using DCL for the subprocess CLI.
    %MMS-I-DRVQUALIF, Using non-defaulted qualifiers /Log/Cms.
    %MMS-I-GWKBEGWLK, Starting the build at target ALL.
    %MMS-I-GMTIMFND, Time for PCLADDA.C~ is 17-MAR-1997 11:31:20.46.
    %MMS-I-GMTIMFND, Time for PCLADDA.C is 17-NOV-1858 00:00:00.00.
    %MMS-I-GWKOLDNOD, Target PCLADDA.C is older than PCLADDA.C~.
    %MMS-I-GWKWILLEX, MMS will try executing action line to update target
    PCLADDA.C.
    
    mms$cmslib :== 'f$trnlnm("CMS$LIB")
    %MMS-I-EXEPROCID, PID of created subprocess is %X230002BC.
    %MMS-I-GWKEXESTS, Status of executed command is %X00030001.
    -CLI-S-NORMAL, normal successful completion
    IF mms$cmslib .NES. "USR:[EKLUND.CMS]" THEN     CMS SET LIBRARY
    USR:[EKLUND.CMS]
    %MMS-I-GWKEXESTS, Status of executed command is %X00010001.
    -RMS-S-NORMAL, normal successful completion
    
    CMS FETCH PCLADDA.C     /OUTPUT=PCLADDA.C /GEN=1+ ""
    %CMS-S-FETCHED, generation 2 of element USR:[EKLUND.CMS]PCLADDA.C
    fetched
    %MMS-I-GWKEXESTS, Status of executed command is %X109C8299.
    
    IF mms$cmslib .NES. "" .AND.    mms$cmslib .NES. "USR:[EKLUND.CMS]"
    THEN
    CMS SET LIBRARY 'mms$cmslib'
    %MMS-I-GWKEXESTS, Status of executed command is %X00010001.
    -RMS-S-NORMAL, normal successful completion
    %MMS-I-GWKUPDONE, Completed update for target PCLADDA.C.
    %MMS-I-GWKOLDNOD, Target PCLADDA.OBJ is older than PCLADDA.C.
    %MMS-I-GWKWILLEX, MMS will try executing action line to update target
    PCLADDA.OB
    J.
    
    if f$getsyi("node_hwtype") .eqs. "ALPH" then    CC/STANDARD=VAXC 
    PCLADDA.c
    %MMS-I-GWKEXESTS, Status of executed command is %X00010001.
    -RMS-S-NORMAL, normal successful completion
    
    if f$getsyi("node_hwtype") .nes. "ALPH" then    CC/STANDARD=VAXC 
    PCLADDA.c
    %MMS-I-GWKEXESTS, Status of executed command is %X10B90001.
    %MMS-I-GWKUPDONE, Completed update for target PCLADDA.OBJ.
    %MMS-I-GWKOLDNOD, Target USR:[EKLUND.BANV.EXE]PCLADDA.EXE is older than
    PCLADDA.OBJ.
    %MMS-I-GWKWILLEX, MMS will try executing action line to update target
    USR:[EKLUND.BANV.EXE]PCLADDA.EXE.
    
    LINK/EXE=USR:[EKLUND.BANV.EXE]PCLADDA.EXE PCLADDA.OBJ!,
    %LINK-W-NUDFSYMS, 1 undefined symbol:
    %LINK-I-UDFSYM,         SNS$ADD_MESSAGE
    %LINK-W-USEUNDEF, undefined symbol SNS$ADD_MESSAGE referenced
            in psect $CODE offset %X00000060
            in module PCLADDA file USR:[EKLUND.BANV]PCLADDA.OBJ;1
    %MMS-I-GWKEXESTS, Status of executed command is %X10648268.
    %MMS-F-ABORT, For target USR:[EKLUND.BANV.EXE]PCLADDA.EXE, CLI returned
    abort status: %X10648268.
    
    Strange isn't it ?
    
    If you need or wan't you may log in here.
    
    -Johan
1377.6check cms$libEDSDS6::WANGJames - DECset EngineeringWed Mar 19 1997 09:1917
->  AGNE> mms/desc=banv/log/cms

-> %MMS-F-GWKNOPRN, There are no known sources for the current target
    PCLADDA.OBJ.

On Alpha system, what is your current default CMS library ?
Did you define any logical name for CMS$LIB or CMS SET LIBRARY in your 
login.com or any a procedure that it calls ? You may check this by:
   $ SHOW LOGICAL CMS$LIB

The /CMS qualifier directs MMS to look for sources in the current default CMS
library. If you don't tell MMS what CMS library to use, MMS/CMS will try to 
find PCLADDA.C in your current default CMS library. That may be the reason
why you got MMS-F-GWKNOPRN.


-James
1377.7CMS IS/WAS SETSWETSC::EKLUNDOn a clear day you can see foreverWed Mar 19 1997 10:3929
    Hi,
    
    I'm sorry I didn't mention that the CMS library was set. But, I just
    reran it:
    
    AGNE> cms sho elem
    
    Elements in DEC/CMS Library USR:[EKLUND.CMS]
    
    A.A           "gfydh"
    B.B           "HFURIP"
    C.C           "HFUEW"
    PCLADDA.C     "Create For Banverket"
    AGNE> mms/desc=banv/log/cms
    %MMS-I-DRVOUTFIL, Using output file SYS$OUTPUT:.;.
    %MMS-I-DRVDEPFIL, Using description file USR:[EKLUND.BANV]BANV.MMS;16.
    %MMS-I-DRVFMSSUP, DEC/MMS is installed with support for VAX FMS.
    %MMS-I-DRVSUBCLI, Using DCL for the subprocess CLI.
    %MMS-I-DRVQUALIF, Using non-defaulted qualifiers /Log/Cms.
    %MMS-I-GWKBEGWLK, Starting the build at target ALL.
    %MMS-I-GMTIMFND, Time for PCLADDA.OBJ is 17-NOV-1858 00:00:00.00.
    %MMS-F-GWKNOPRN, There are no known sources for the current target
    PCLADDA.OBJ.
    AGNE>
    
    
    	So, there is some other strange problem here.
    
    	/Johan
1377.8EDSDS6::WANGJames - DECset EngineeringThu Mar 20 1997 12:4718
Hi Johan,

>->    %MMS-I-DRVQUALIF, Using non-defaulted qualifiers /Log/Cms.
>->    %MMS-I-GWKBEGWLK, Starting the build at target ALL.
>->    %MMS-I-GMTIMFND, Time for PCLADDA.OBJ is 17-NOV-1858 00:00:00.00.
>->    %MMS-F-GWKNOPRN, There are no known sources for the current target
>->    PCLADDA.OBJ.
>  

MMS treats the CMS library as the "source" for your source code files. In your
log file (On Alpha system), MMS  apparently didn't find your CMS library.

Do you have this problem with MMS with other CMS libraries on your Alpha
system. If yes, then the problem is probably system-related. If not, then it
may related to accessing this particular CMS library. 
   

-James
1377.9From where does the problem emanate ?SWETSC::EKLUNDOn a clear day you can see foreverWed Mar 26 1997 09:5610
    Hi,
    
    I've been trying to figure out why this happen without success. As this
    is a Alpha/Vax cluster I use the same CMS library in the two cases.
    
    I have installed the Delta Time patch som time ago here, I do not think
    that it is the one that causes the difference here but maybe som other.
    Do you have any ideas ?
    
    Johan
1377.10Updated CMS solved it (But why ?)SWETSC::EKLUNDOn a clear day you can see foreverWed Mar 26 1997 10:229
    Hi again,
    
    After writing the previous reply I checked to see I there was a newer
    CMS version. There was one so I installed it, V3.8-2 and the Alpha now
    behaves just like thew VAX. It updates the targets as it ought too. 
    
    Thanks for your assistance
    
    Johan
1377.11EDSDS6::WANGJames - DECset EngineeringWed Mar 26 1997 12:095
Thanks for the notification.
Apparently MMS had some kind of trouble activating the CMS shareable image 
on your Alpha system, but I have no idea why updating CMS solved this problem.

1377.12IOSG::BURTONIOSG - SEI CMM level 3Thu Mar 27 1997 02:475
    Maybe there was some problem with the CMS shareable image itself.  The
    upgrade would have provided a new good version and ensured it was
    correctly set up ($install'ed, correct protection etc). 
    
    Martin.
1377.13Now to a new questionSWETSC::EKLUNDOn a clear day you can see foreverThu Mar 27 1997 05:3554
    Hi,
    
    I assume that MMS does not use callable CMS and that it accesses CMS in
    the same way as I do. But I think that I will leave the 'why' to rest.
    Thanks anyhow.
    
    
    James,
    
    Can you help me with another question using the MMS files found in
    previous replies ?
    
    If I have a newer .SC version but no .C file in the local directory and
    if I change the rule in the CBRULES.MMS to:
    
    ! Default-regel f�r esqlc och CC
    .sc.c
            create pcladda.c 
    
    as I have no esqlc-command in my tables. Then I get the following
    output:
    
    KURTAN>  mms/desc=banv/log/cms
    %MMS-I-DRVOUTFIL, Using output file SYS$OUTPUT:.;.
    %MMS-I-DRVDEPFIL, Using description file USR:[EKLUND.BANV]BANV.MMS;16.
    %MMS-I-DRVFMSSUP, DEC/MMS is installed with support for VAX FMS.
    %MMS-I-DRVSUBCLI, Using DCL for the subprocess CLI.
    %MMS-I-DRVQUALIF, Using non-defaulted qualifiers /Log/Cms.
    %MMS-I-GWKBEGWLK, Starting the build at target ALL.
    %MMS-I-GMTIMFND, Time for PCLADDA.SC~ is 26-MAR-1997 16:35:25.01.
    %MMS-I-GMTIMFND, Time for PCLADDA.SC is 27-MAR-1997 09:52:13.31.
    %MMS-I-GMTIMFND, Time for PCLADDA.OBJ is 17-NOV-1858 00:00:00.00.
    %MMS-I-GWKOLDNOD, Target PCLADDA.OBJ is older than PCLADDA.SC.
    %MMS-I-GWKWILLEX, MMS will try executing action line to update target
    PCLADDA.OB
    J.
    
    SQL$PRE /CC/OBJECT=PCLADDA.OBJ  PCLADDA.SC
    %MMS-I-EXEPROCID, PID of created subprocess is %X22C014EA.
    
    %DCL-W-IVVERB, unrecognized command verb - check validity and spelling
     \SQL$PRE\
    %MMS-I-GWKEXESTS, Status of executed command is %X00038090.
    -CLI-W-IVVERB, unrecognized command verb - check validity and spelling
    %MMS-F-ABORT, For target PCLADDA.OBJ, CLI returned abort status:
    %X00038090.
    -CLI-W-IVVERB, unrecognized command verb - check validity and spelling
    KURTAN>
    
    Why is MMS trying to invoke SQL$PRE ?
    
    -Johan
    
    
1377.14try /RULESEDSDS6::WANGJames - DECset EngineeringThu Mar 27 1997 10:5917
Hi Johan,

Apparently MMS try to use built_in rule in your example.

Try use /RULES qualifier to directs  MMS applying user-defined rules:

$ mms/desc=banv/log/cms/RULES=CBRULES.MMS  

BTW: 
->   create pcladda.c

I think COPY would be better because you have to use Ctrl/Z terminates
the input with CREATE command.

-James


1377.15Does this help ?EDSDS6::WANGJames - DECset EngineeringFri Mar 28 1997 14:3239
Hi Johan,

->Why is MMS trying to invoke SQL$PRE ?

MMS checks its SUFFIXES precedence list to determine the file types of the
source and then uses the built-in rules to determine how the various types of
files can be generated from the known rules.

For example:  if you have a list:

.SUFFIXES .obj    .c	  .sc
	   ^       |       |
           |_______|_______| 

The built-in rules direct MMS how to build the .obj from .c file and .sc file.
If you only have .sc file in your current directory, MMS will try to built
.obj from .sc. That's why SQL$PRE is invoked.

You can add additional rule in your CBRULES.MMS and tell MMS how to built the
object file. For example:


.sc.obj
        copy pcladda.sc pcladda.c
        if f$getsyi("node_hwtype") .eqs. "ALPH" then -
        CC/STANDARD=VAXC $(CFLAGS) $*.c
        if f$getsyi("node_hwtype") .nes. "ALPH" then -
        CC/STANDARD=VAXC $(CFLAGS) $*.c


You also can supply a file specification with /RULES, the rules in this 
file replace the built-in rules that MMS normally uses so SQL$PRE would not
be invoked because the .sc.obj built-in rule is no longer applied .


-James 



1377.16I am a bit uncertain stillSWETSC::EKLUNDOn a clear day you can see foreverTue Apr 01 1997 10:5314
    Hi,
    
    re .14, .15
    
    What I found strange was the fact by including CBRULES.MMS I do not get
    the same behaviour as by invoking MMS with/RULES=CBRULES. I had the 
    idea that it would produce the same result. 
    
    So why is the actionline following .SC.C in CBRULES.MMS not used by MMS
    when I include the file ? 
    
    
    -Johan
    
1377.17EDSDS6::GLEASONDaryl Gleason, DECset EngineeringWed Apr 02 1997 13:0927
    Hi Johan,
    
    Pardon me for jumping in; James is on vacation this week.
    
    No, .INCLUDE and /RULES will not necessarily behave in the same way.
    .INCLUDE adds your user-specified rules to the built-in ones, whereas
    /RULES throws away the built-in ones and uses only those that you
    specified.
    
    The reason that your .SC.C is not used when your file is included is
    because MMS has a built-in rule for building a .OBJ directly from a
    .SC. As a bit of background, when MMS is searching for sources for a
    target, it searches in accordance to the rules it knows about (either
    built-in or user-specified) in suffix-list order. So in this case, when
    MMS goes to build the .OBJ, it looks in its rules list for all possible
    sources by suffix, one by one. Since there is a built-in rule for
    .SC.OBJ, and since you have a .SC file in your directory, MMS looks no
    further and executes the action lines associated with that rule.
    Because that built-in rule is there, MMS won't bother with rules that
    may specify intermediate sources for the .OBJ file (the .C file, in
    this case) and so will not execute them.
    
    To get around this, you can use /RULES instead of including your file.
    Or, you could specify that the .OBJ depends on the .C, which will tell
    MMS what the source is for the object file.
    
    -- Daryl
1377.18ThanksSWETSC::EKLUNDOn a clear day you can see foreverThu Apr 03 1997 02:233
    Thank you Daryl, your jumping in was much appriciated.
    
    -Johan