|
Hi,
Do you have write access on the subset you are creating ?
If yes then do add the new format there... If not you could carry
the formats and use them in the procedures you need, example:
proc print data=subset;
format category category.
primary primary.
;
run;
Regards,
Bernard Tremblay
\\\|///
\\ - - //
( @ @ )
+------oOOo-(_)-oOOo----------+---------------------------------+
| Bernard Tremblay | |
| La Capitale | Tel: (418) 646-2401 |
| | Fax: (418) 646-5960 |
| | Int: bernard@capitale.qc.ca |
+-----------------------------+---------------------------------+
| Imaginasys enr | Res: (418) 878-4447 |
| | Int: bertrem@quebectel.com |
+---------------Oooo----------+---------------------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>From owner-sas-l@UGA.CC.UGA.EDU Wed Feb 18 16:45 EST 1998
>>>Mime-Version: 1.0
>>>Content-Transfer-Encoding: 7bit
>>>Date: Wed, 18 Feb 1998 15:24:27 -0600
>>>Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
>>>From: Randal Hergesheimer <madoc@ibm.net>
>>>Subject: MVS & old formats + new formats
>>>To: SAS-L@UGA.CC.UGA.EDU
>>>Content-Type: text/plain; charset="us-ascii"
>>>Content-Length: 925
>>>
>>>Hello!
>>>
>>> I want to create a dataset that is a subset of another dataset
>>>that also contains a number of new variables I have created. The
>>>previously existing variables have permanent formats and I want to
>>>create permanent formats for the new variables. This ordinarily would
>>>not be a problem but I do not have write access to the original format
>>>library. There are hundreds of formats in the original format library.
>>>Perhaps the example code below will give a reasonable idea of what I
>>>have tried without success:
>>>
>>>proc format;
>>> value category 1='Category A';
>>> value primary 1='Yes';
>>>
>>>run;
>>>
>>>proc datasets library=out1;
>>> modify data;
>>> format category category.
>>> primary primary.;
>>>
>>>run;
>>>
>>>I have tried a number of variations without success. This must be
>>>trivial, but I have not been able to figure it out. The operating
>>>system is MVS and the version 6.09E.
>>>
>>> Randy
|