SAS Usage Tips - Dynamically capture the user content of the external URL

xiaoxiao2021-03-06  68

Before using the SAS version, SAS8 needs to make patch, and it seems that there is no direct patch on the SAS website. You need to pay attention. Nice 9, no this problem is actually very simple, it is through SAS. Data STEP is first: need to be a logical file name to reference the URL address and then read the contents of the content by Data STEP, you can read the code as follows: filename Reference name URL 'URL Address' RECFM = V (Read Format , V table read in text format) LRECL = N (the longest record per row); DATA table name; file _Webout; Infile reference name linesize = N PAD; Length Content $ 32766 .; Input Content $ Char32766 .; Run;

It can realize the content of the web page pointed to by the URL, but it is very strange that the contact to run the above code will cause the SAS crash, it is quite strange, then change the code to the following: filename Recall name URL 'URL Address' RECFM = V (Read Format, V table read in text format) LRECL = N (the longest record per row); DATA table name; file _Webout; infile reference name length = LEN; Length Content $ 32766.; Input Content $ Varying32766. Len; Run

转载请注明原文地址:https://www.9cbs.com/read-88147.html

New Post(0)