Chapter Contents

Previous

Next
SAS/C Software: Changes and Enhancements, Release 6.50


#chain Command

#chain FILENAME
 

  When the #chain command is specified, the header-map look up uses the  #include processing rules specified on this compilation to locate the file named FILENAME. It uses system include rules when processing system $$HDRMAP files and user include rules for user defined $$HDRMAP files. 

Any header-map entries found in the file will be inserted in the list at the point of the #chain command. 

A file that is processed using a #chain can  #chain other files. If the file named on the  #chain can not be located or opened using the include search rules, the  #chain is ignored and processing continues. 

For example, in a user include $$hdrmap.h, you could have

foo.h bar.h
harry.h george.h
#
# Go get the mappings for the current project.
#

#chain //DDN:PROJECT(MAPPINGS)

alice.h betty.h
If the DDN "PROJECT" was defined so that MAPPINGS contained
somebiglongname.h sbln.h
Then the header map list would be :
foo.h -> bar.h
harry.h -> george.h
somebiglongname.h -> sbln.h
alice.h -> betty.h


Chapter Contents

Previous

Next

Top of Page

Copyright © Mon Mar 9 09:11:22 EST 1998 by SAS Institute Inc., Cary, NC, USA. All rights reserved.