home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / bit / listserv / sasl / 4927 < prev    next >
Encoding:
Text File  |  1992-11-05  |  3.5 KB  |  80 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!IBM-B.RUTHERFORD.AC.UK!SJW1
  3. X-Delivery-Notice: SMTP MAIL FROM does not correspond to sender.
  4. Message-ID: <SAS-L%92110509084056@VTVM2.CC.VT.EDU>
  5. Newsgroups: bit.listserv.sas-l
  6. Date:         Thu, 5 Nov 1992 13:39:24 GMT
  7. Reply-To:     "Simon Watson" <SJW1@IBM-B.RUTHERFORD.AC.UK>
  8. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  9. From:         "Simon Watson" <SJW1@IBM-B.RUTHERFORD.AC.UK>
  10. Subject:      Reading binary data
  11. Lines: 67
  12.  
  13. This may be a simple problem but anyway...
  14.  
  15. I am trying to read a binary file from tape into a SAS dataset using
  16. SAS 6.07 on VM/ESA and CMS.
  17. The tape file is RECFM VBS and BLKSIZE 23476. I can read the data with a
  18. FORTRAN program with no problem, but there seems to be a problem with my
  19. SAS code. It seems that the record length is being 'truncated' as seen by
  20. the SAS program so that it has to 'wrap around' onto the next record
  21. before reading all of the previous record:
  22. 11                                                          The SAS System
  23.  
  24.  NOTE: Copyright(c) 1989 by SAS Institute Inc., Cary, NC USA.
  25.  NOTE: SAS (r) Proprietary Software Release 6.07  TS301
  26.        Licensed to Rutherford Appleton Laboratory, Site 0004007001.
  27.  
  28.  NOTE: Running on IBM Model 3090 Serial Number 541890.
  29.  
  30.  
  31.  1          libname cmdata 'h';
  32.  NOTE: Libref CMDATA was successfully assigned as follows:
  33.        Engine:        V607
  34.        Physical Name: CMDATA   H1
  35.  2          DATA cmdata.WIND;
  36.  3              INFILE INDATA;
  37.  4              INPUT (X1-X17 t1-t15 txg1-txg15 tyg1-tyg15 d1-d12 dxg1-dxg12
  38.  5                     dyg1-dyg12 u1-u15 v1-v15 div1-div15 curl1-curl15
  39.  6                     u v) (160*RB4.);
  40.  7              drop x1-x8  x17;
  41.  8              flag=1;
  42.  9              ARRAY STEPDATA
  43.  10                    X9-X16 t1-t15 txg1-txg15 tyg1-tyg15 d1-d12 dxg1-dxg12
  44.  11                    dyg1-dyg12 u1-u15 v1-v15 div1-div15 curl1-curl15
  45.  12                    u v;
  46.  13             DO OVER STEPDATA;
  47.  14               IF STEPDATA < -3000. THEN STEPDATA=.;
  48.  15               END;
  49.  
  50.  NOTE: The infile INDATA is:
  51.        Filename=TAP1,
  52.        Recfm=VBS,Lrecl=260,Blksize=23476,
  53.        Max data length=256
  54.  
  55.  ERROR: File CMDATA.WIND.DATA is damaged. I/O processing did not complete.
  56. +ERROR: File CMDATA.WIND.DATA is damaged. I/O processing did not complete.
  57. +ERROR: File CMDATA.WIND.DATA is damaged. I/O processing did not complete.
  58.  ERROR: Write to CMDATA.WIND.DATA failed. File is full and may be damaged.
  59. +ERROR: Write to CMDATA.WIND.DATA failed. File is full and may be damaged.
  60. +ERROR: Write to CMDATA.WIND.DATA failed. File is full and may be damaged.
  61.  NOTE: 6195 records were read from the infile INDATA.
  62.        The minimum record length was 256.
  63.        The maximum record length was 256.
  64.        One or more lines were truncated.
  65.  NOTE: SAS went to a new line when INPUT statement reached past the end of a lin
  66.  NOTE: The SAS System stopped processing this step because of errors.
  67.  NOTE: SAS set option OBS=0 and will continue to check statements. This may caus
  68.  WARNING: The data set CMDATA.WIND may be incomplete.  When this step was stoppe
  69.  WARNING: Data set CMDATA.WIND was not replaced because this step was stopped.
  70.  etc.
  71.  
  72. I have read binary data OK in the past (up to 83 variables per record) with
  73. SAS so I just wonder whether this is a tape problem or maybe too many variables
  74. for the INPUT statement? (is there a limit to the number of variables you can
  75. read in with one INPUT statement?)
  76.  
  77. Any help would be very much appreciated. Thanks
  78.  
  79.     Simon Watson.
  80.