An i o error has occurred on file sas

I have several SAS users who are experiencing I/O errors, here are a few examples: ERROR: An I/O error has occurred on file ... | Data Management

Hello,

I have several SAS users who are experiencing I/O errors, here are a few examples:

ERROR: An I/O error has occurred on file WORK.XXX.DATA.

NOTE: The SAS System stopped processing this step because of errors.

NOTE: There were 59133987 observations read from the data set WORK.XXX.

WARNING: The data set WORK.XXX may be incomplete. When this step was stopped there were 1086924 observations and 15 variables.

NOTE: Compressing data set WORK.XXX decreased size by 30.14 percent.

Compressed is 12656 pages; un-compressed would require 18116 pages.

NOTE: PROCEDURE SUMMARY used (Total process time):

real time 28:26.01

cpu time 8:27.68when trying to run

I am pretty new at this application-any feed back would be helpful. We recently migraded to a new HP server a couple months back.

Read these next…

  • Curated Green Brand Rep Wrap-Up: January 2023

    Green Brand Rep Wrap-Up: January 2023

    Spiceworks Originals

    Hi, y’all — Chad here. A while back, we used to feature the top posts from our brand reps (aka “Green Gals/Guys/et. al.) in a weekly or monthly wrap-up post. I can’t specifically recall which, as that was approximately eleven timelines ago. Luckily, our t…

  • Curated Help with domain controller setup

    Help with domain controller setup

    Windows

    I just got a new job as the only IT person for a business with around 270 employees (I would say probably less than half use computers) They don’t have any policies or procedures when it comes to IT, as they have never had an IT person. My background cons…

  • Curated Malicious URLs

    Malicious URLs

    Security

    We have firewall, we have endpoint protection, we have Safe links and Attachments for Office 365 (Microsoft Defense for Office 365 Plan 1), and still receiving links that lead to malicious web sites.It seems like security companies still didn’t develop a …

  • Curated Snap! -- Old Batteries, Lovable Bots, Quantum Breakthrough, Should We Trust AI?

    Snap! — Old Batteries, Lovable Bots, Quantum Breakthrough, Should We Trust AI?

    Spiceworks Originals

    Your daily dose of tech news, in brief.

    Welcome to the Snap!

    Flashback: February 8, 1996: The massive Internet collaboration “24 Hours in Cyberspace” takes place (Read more HERE.)

    Bonus Flashback: February 8, 1974: Americans end outer spa…

  • Curated Large collection of Mac Minis

    Large collection of Mac Minis

    Best Practices & General IT

    We are getting rid of a lot of older equipment that doesn’t have a purpose anymore on our campus. Most of it is 2010 and 2014 Mac Minis. When they were purchased, they were the absolute base model, so nothing special about them. I’ve reached out to multip…

Обновлено 23.07.2018

vmware logo

Добрый день! Уважаемые читатели и гости блога pyatilistnik.org. Продолжаем с вами изучать технологии виртуализации компании Vmware. В прошлый раз мы с вами успешно устранили ошибку: The host returns esxupdate error code:99. Сегодня я же хочу вам показать, из-за чего вы в VMware vCenter Converter Standalone, можете на последнем шаге мастера увидеть ошибку «A File I/O error occurred while accessing«, не дающую вам произвести преобразование физического сервера в виртуальный, так называемый P2V от Vmware. Уверен, что данный материал, хоть и не большой по объему, окажется полезным, для начинающих администраторов.

Как выглядит ошибка I/O в VMware vCenter Converter Standalone

Как видите, когда я дошел до самого последнего шага на вкладке «Summary» и только осталось нажать на кнопку «Finish», чтобы запустить процесс конвертации физического сервера в виртуальный, у меня выскочило оповещение в виде ошибки:

A File I/O error occurred while accessing

Которое дальше не позволяет, что либо сделать.

A File IO error occurred while accessing

Вся проблема в том, что у вас при конвертации P2V, должны быть соблюдены три вещи:

  1. У вас должны быть права локального администратора, на том физическом сервере, который вы будите преобразовывать
  2. У вас должны быть права на Vmware ESXI хост или vCenter сервер, который будет конечной точкой
  3. Вы должны отключить UAC, либо же запустить VMware vCenter Converter Standalone от имени администратора

Если у вас не соблюдены все эти требования, то вы и будите получать данную ошибку. Зачастую, самой частой причиной является, именно третий пункт с UAC, так что щелкайте по ярлыку конвертера правым кликом и открывайте его от имени администратора, проблем с конвертацией не будет. Надеюсь, эта маленькая заметка помогла вам и позволила создать еще одну виртуальную машину. Если у вас есть альтернативные методы решения ошибки «A File I/O error occurred while accessing», то не поленитесь, о них написать в комментариях, давайте делиться знаниями. Материал сайта pyatilistnik.org.

Июл 23, 2018 21:37

У меня есть файл sas-db на файловом сервере, и я хочу проверить, открыт ли он на другом ПК.

Я предпринял несколько попыток, используя эти источники http://www.wuss.org/proceedings11/Papers_Galligan_O_74889.pdf< /a> http:// support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p0a6vn2td7bjr2n1viy8y4lgvq61.htm безуспешно. Цифры (fid) в журнале никогда не становятся равными 0, независимо от того, открыт файл на другом ПК или нет.

%MACRO Try;

%let filrf=myfile;
%let rc=%sysfunc(filename(filrf,\inti[...]p3001_overviewsampling.sas7bdat));
%let fid=%sysfunc(fopen(&filrf));
%PUT RC is: &RC // fid is &fid ; 

%MEND;
%Try;

LOG: RC is: 20036 // fid is 30

Есть идеи? Спасибо, Лубеня.

—— РЕДАКТИРОВАТЬ после ответа данных null —————-

Спасибо за покой. Однако, если я дважды запускаю ваш макрос, он больше не работает. Каким-то образом файл блокируется, даже если он запущен с того же ПК. И теперь я больше не могу удалить файл с любого компьютера.

17   %LET Path =\hugoTemp;
18   LIBNAME test "&Path";
NOTE: Libref TEST was successfully assigned as follows:
      Engine:        V9
      Physical Name: \hugoTemp
19
20
21   data test.class2;
22           set sashelp.class;
23   run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set TEST.CLASS2 has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.06 seconds
      cpu time            0.01 seconds


24
25   %MACRO Try(data=,library=);
26        %let filrf=myfile;
27        %let rc=%sysfunc(filename(filrf,%sysfunc(pathname(&library))/&data..sas7bdat));
28        %let fid=%sysfunc(fopen(&filrf,O));
29        %PUT RC is: &RC // fid is &fid ;
30        %if &fid %then %let rc=%sysfunc(fclose(&fid));
31   %MEND;
32   %Try(data=class2,library=test);
RC is: 0 // fid is 1

33   %Try(data=class2,library=test);
RC is: 0 // fid is 0

34   data test.class2;
35           set sashelp.class;
36   run;

ERROR: An I/O error has occurred on file TEST.CLASS2.DATA.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

2 ответа

Мне пришлось добавить опцию вывода O в FOPEN

25         data class;
26            set sashelp.class;
27            run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.CLASS has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds


28         %let did = %sysfunc(open(class));
29         %put &=did;
DID=1
30         
31         %MACRO Try(data=);
32            %let filrf=myfile;
33            %let rc=%sysfunc(filename(filrf,%sysfunc(pathname(work))/&data..sas7bdat));
34            %let fid=%sysfunc(fopen(&filrf,O));
35            %PUT RC is: &RC // fid is &fid ;
36            %if &fid %then %let rc=%sysfunc(fclose(&fid));
37            %MEND;
38         %Try(data=class)
Resource is read-locked by another thread.  File 
=/opt/local/saswork/...redacted.../class.sas7bdat.
RC is: 0 // fid is 0
39         
40         %let rc=%sysfunc(close(&did));
41         %put &=rc;
RC=0


0

data _null_
8 Окт 2015 в 15:20

Ниже приведен подход к обработке этого случая, хотя, к сожалению, он по-прежнему записывает в журнал ОШИБКУ:

%let lib=YOURLIB;
%let ds=YOURDS;

/* first - test for syscc>0 and handle */
/* next, attempt to gain update access and set var if successful */
%let locked=yes;
data &lib..&ds;
  modify &lib..&ds;
  call symputx('locked','no');
  stop;
run;

/* if error, or explicity locked, handle the case */
%if &syscc>0 or &locked=yes %then %do;
  %let syscc=0;
  options obs=max replace nosyntaxcheck;
  /* DO SOMETHING HERE */
%end;


0

Allan Bowe
30 Сен 2018 в 19:32

Понравилась статья? Поделить с друзьями:

Читайте также:

  • An extended error has occurred
  • An existing connection was forcibly closed by the remote host error 10054
  • An exception runtime error has occurred
  • An unexpected error has occurred что делать windows 7
  • An exception occurred as described below source tmacv6 error 9 subscript out of range

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии