<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic A lock is not available for a dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/A-lock-is-not-available-for-a-dataset/m-p/603100#M16900</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA	HypTabs.Vitals (LABEL = "Vital Signs");

	ATTRIB SSN LABEL = 'Social Security Number'
		   VisitDt LABEL = 'Visit Date' FORMAT = DATE9.
		   HtIn LABEL = 'Height (In)' LENGTH = 8.
		   WtLb LABEL = 'Weight (Lb)' LENGTH = 8.
		   SBP LABEL = 'Systolic BP (mmHg)' LENGTH = 8.
		   DBP LABEL = 'Diastolic BP (mmHg)' LENGTH = 8.;
		   
	KEEP SSN VisitDt HtIn WtLb SBP DBP;
	
	SET	WORK.Vitals_IA
		WORK.Vitals_MS
		WORK.Vitals_UT2;
	
	RUN;

PROC SORT DATA = HypTabs.vitals;
	BY SSN VisitDt HtIn WtLb SBP DBP;
	RUN;
	
PROC CONTENTS DATA = HypTabs.Vitals VARNUM;
	RUN;
	
PROC PRINT DATA = HypTabs.Vitals (OBS = 1);
	RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I enter in the code above, I get several errors saying that a lock is not available for the data set. I'm not quite sure what this error message is telling me and I am also not sure how to fix it as it shows up after every single run statement.&lt;/P&gt;</description>
    <pubDate>Sun, 10 Nov 2019 23:29:56 GMT</pubDate>
    <dc:creator>walkerel</dc:creator>
    <dc:date>2019-11-10T23:29:56Z</dc:date>
    <item>
      <title>A lock is not available for a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/A-lock-is-not-available-for-a-dataset/m-p/603100#M16900</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA	HypTabs.Vitals (LABEL = "Vital Signs");

	ATTRIB SSN LABEL = 'Social Security Number'
		   VisitDt LABEL = 'Visit Date' FORMAT = DATE9.
		   HtIn LABEL = 'Height (In)' LENGTH = 8.
		   WtLb LABEL = 'Weight (Lb)' LENGTH = 8.
		   SBP LABEL = 'Systolic BP (mmHg)' LENGTH = 8.
		   DBP LABEL = 'Diastolic BP (mmHg)' LENGTH = 8.;
		   
	KEEP SSN VisitDt HtIn WtLb SBP DBP;
	
	SET	WORK.Vitals_IA
		WORK.Vitals_MS
		WORK.Vitals_UT2;
	
	RUN;

PROC SORT DATA = HypTabs.vitals;
	BY SSN VisitDt HtIn WtLb SBP DBP;
	RUN;
	
PROC CONTENTS DATA = HypTabs.Vitals VARNUM;
	RUN;
	
PROC PRINT DATA = HypTabs.Vitals (OBS = 1);
	RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I enter in the code above, I get several errors saying that a lock is not available for the data set. I'm not quite sure what this error message is telling me and I am also not sure how to fix it as it shows up after every single run statement.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 23:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/A-lock-is-not-available-for-a-dataset/m-p/603100#M16900</guid>
      <dc:creator>walkerel</dc:creator>
      <dc:date>2019-11-10T23:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: A lock is not available for a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/A-lock-is-not-available-for-a-dataset/m-p/603102#M16901</link>
      <description>&lt;P&gt;Please show the entire log.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 00:22:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/A-lock-is-not-available-for-a-dataset/m-p/603102#M16901</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-11-11T00:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: A lock is not available for a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/A-lock-is-not-available-for-a-dataset/m-p/603105#M16902</link>
      <description>&lt;P&gt;Table&amp;nbsp;HypTabs.Vitals must be locked by another process (like another EG session having the table open).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below two procedures require only read access to the table. Can you execute these two (without executing the code before)?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC CONTENTS DATA = HypTabs.Vitals VARNUM;
	RUN;
	
PROC PRINT DATA = HypTabs.Vitals (OBS = 1);
	RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you can't then some other process must be locking the table in write access. If you can then there must be another process locking the table with read access.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 00:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/A-lock-is-not-available-for-a-dataset/m-p/603105#M16902</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-11-11T00:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: A lock is not available for a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/A-lock-is-not-available-for-a-dataset/m-p/603126#M16908</link>
      <description>&lt;P&gt;If the data is stored in a shared location and another programmer is working on the same project, they might have had the data open at the same time as you.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 07:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/A-lock-is-not-available-for-a-dataset/m-p/603126#M16908</guid>
      <dc:creator>jvdl</dc:creator>
      <dc:date>2019-11-11T07:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: A lock is not available for a dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/A-lock-is-not-available-for-a-dataset/m-p/603129#M16909</link>
      <description>&lt;P&gt;Is it reported as "locked by another process", or "locked by you in environment ..."?&lt;/P&gt;
&lt;P&gt;Please post the whole log of all these steps.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 08:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/A-lock-is-not-available-for-a-dataset/m-p/603129#M16909</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-11T08:00:40Z</dc:date>
    </item>
  </channel>
</rss>

