Date: Fri, 29 Mar 2002 08:37:57 -0800
Reply-To: shiling zhang <shiling99@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: shiling zhang <shiling99@YAHOO.COM>
Organization: http://groups.google.com/
Subject: Re: Report like a formular
Content-Type: text/plain; charset=ISO-8859-1
Those fields information is stored in sashelp.vcolumn.
Using the power data step + put statement will create the file you want.
data test;
attrib solddate length=8 format=yymmdd10. label='sold date';
solddate='1jan1960'd;
run;
data _null_;
set sashelp.vcolumn(where=(upcase(libname)='WORK' and upcase(memname)= 'TEST'));
if _n_=1 then put @1 "name" @20 "type" @25 "length" @35 "format" @45 "label";
put @1 name @20 type @25 length @35 format @45 label;
run;
Wichert@tks.thyssenkrupp.com (=?ISO-8859-1?Q?J=F6rg?=) wrote in message news:<3131695.0203290101.2eb75255@posting.google.com>...
> Hi,
> who can help me. I want to print a single record like a formular, for
> that I want to advise the SAS to print fields in certain columns and
> lines as you can do it in Access or Visual Basic. What I found is
> only how I can print the record in a list. The following example
> should give you an idea what I want to do:
>
> -------------------------------------------------------------
> general data
>
> Field01: 12345 Field02: XXXXXXXXXXXXXXX
>
> Field03: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
> --------------------------------------------------------------
> additional data
>
> Field04: 123456 'Meaning of Field 04'
> Field05: 123456 'Meaning of Field 05'
> -------------------------------------------------------------
>
> Best regards