home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / vms / 18282 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.3 KB  |  53 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!fmsrl7!lynx!hydra.unm.edu!hamjavar
  3. From: hamjavar@hydra.unm.edu (Farid Hamjavar)
  4. Subject: summary
  5. Message-ID: <lxnq6+d@lynx.unm.edu>
  6. Date: Fri, 20 Nov 92 23:21:15 GMT
  7. Organization: University of New Mexico, Albuquerque
  8. Lines: 43
  9.  
  10.  
  11.  
  12.  
  13. I thanked everyone for answering my DCL parameter passing question, and
  14. someone asked me that I should post a summary.  Ok.
  15.  
  16. Two types of answers were given :
  17.  
  18. 1. Generally, parameters/qualifiers passed to a user-written script
  19.    must be surrounded by "" if they contain  /
  20.  
  21.    Example :
  22.    
  23.    application "/param 1" "/param 2"  .....
  24.  
  25.    I did not use these answers not that they are wrong, they were not
  26.    meeting specific problem that I was facing.
  27.  
  28.  
  29. 2.A  Create a symbol for the script-file such as :
  30.  
  31.      application = "@user5:[farid.work]application.com """" "
  32.  
  33.      I chose this one because it is indeed very clean.
  34.      A NULL string will be passed to .com script as P1.
  35.      In this method the first parameter gets hosed, so within
  36.      the application.com one must do simple adjusting.
  37.  
  38.  
  39. 2.B Create a symbol for the script-file such as :
  40.  
  41.     application = "@user5:[farid.work]application.com %  "
  42.     
  43.     Same as 2.A really.  Except that   % will be passed as P1.
  44.  
  45.  
  46.  
  47.  
  48.  
  49. Thanks again
  50. Farid Hamjavar
  51. University of New Mexico -- CIRT
  52.  
  53.