Date: Fri, 25 Jan 2008 19:57:50 +0000
Reply-To: Paul Dorfman <sashole@BELLSOUTH.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Paul Dorfman <sashole@BELLSOUTH.NET>
Organization: PDC
Subject: Re: Mainframe libname
Steve,
You are right unless in Shaunak's MF environment HFS (Hierarchical File System) is set up and running, making the ambiance indistinguishable from UNIX (through the user's prism, of course), -- which methinks is likely judging from the file name referenced in the LIBNAME statement. In this case, the error may lie elsewhere, but we will not know until s/he reveals what it is.
Kind regards
------------
Paul Dorfman
Jax, FL
------------
-------------- Original message ----------------------
From: Steve James <spj1@CDC.GOV>
>
> It's been a number of years since I've worked on a mainframe (IBM MVS)
> but the environment is quite a bit different from a Windows or Unix
> platform. Where those two are set up in a directory structure (e.g. c:
> \directory\subdirectory\subsubdirectory... etc.), the mainframe
> isn't. The mainframe groups files under userids (either a personal
> one or a group) with a two level name (name + extension). It then may
> store files within a single 'file' as in the case of a Partitioned
> Data-set (PDS) or a SAS data library . A SAS data library is really a
> single file on the mainframe. It may be named something like
> SPJ1.MYDATA.SASDATA where SPJ1 is my userid, MYDATA is the name of the
> dataset and SASDATA is the extension. Within this SAS data library
> there can be many SAS data sets. It looks like from your LIBNAME
> statement below that you are confusing the data structure of the
> mainframe with a data structure that's directory-based since you have
> slashes in the file name.
>
> Steve
>
>
> On Jan 25, 10:23 am, "shaunak.adgaon...@gmail.com"
> <shaunak.adgaon...@gmail.com> wrote:
> > I am new to mainframes. What i want to do is to get the mainframe file
> > to SAS permanent dataset. Will the libname statement be of any use. I
> > will give you the exact code
> >
> > LIBNAME AWDDATA 'SAS_USER/REPORTINGDATA/FSO_ICS';
> >
> > FILENAME AWDIP 'PC.MFD.F5725.SVC.METRICS' disp=shr;
> >
> > DATA AWDDATA.AWDIP;
> > INFILE AWDIP;
> > format key_date yymmdd10.
> > key_time time8.
> > Begin_Date yymmdd10.
> > Begin_Time time8.
> > End_Date yymmdd10.
> > End_Time time8.;
> > INPUT @1 Key_Date YYMMDD10.
> > @11 Key_Time time8.
> > @19 Key_Millisecond $6.
> > @25 Record_Code $1.
> > @26 Create_Node $2.
> > @28 Begin_Unit_Code $10.
> > @38 Begin_Work_Type $10.
> > @48 Begin_Status $10.
> > @58 Begin_Queue $8.
> > @66 Begin_Date YYMMDD10.
> > @77 Begin_Time time8.
> > @92 End_Unit_Code $10.
> > @102 End_Work_Type $10.
> > @112 End_Status $10.
> > @122 End_Queue $8.
> > @130 End_Date YYMMDD10.
> > @141 End_Time time8.
> > @156 End_User_Identifier $8.
> > @164 Fund $7.
> > @171 Account $11.
> > ;
> > run;
> >
> > but it gives me error. Please help guys
|