LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 1999, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 10 Dec 1999 11:29:27 -0500
Reply-To:     mshines@purdue.edu
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Michael S Hines <mshines@PURDUE.EDU>
Subject:      Re: How to modify Format/informat
In-Reply-To:  <E11wSmG-0003HB-00@dove2.cf.ac.uk>
Content-Type: text/plain; charset="iso-8859-1"

You have discovered the default length of 8 characters for a character value. If you want more than ten, you have to set them aside [reserve space] with a FORMAT statement, hence

FORMAT LONGCHAR $char200.;

-------------------------------------------- Michael S Hines, CISA,CIA,CFE,CDP Coordinator of Data Systems / Programming Schools of Engineering 1280 Engineering Administration West Lafayette, IN 47907-1280 Phone 765.494.5338 Fax 765.496.1466 e-mail: mshines@purdue.edu

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU]On Behalf Of Panos PAPANIKOLAOU Sent: Friday, December 10, 1999 11:20 AM To: SAS-L@LISTSERV.UGA.EDU Subject: How to modify Format/informat

Dear All,

I have written a few simple if/then statements to create a character variable or alter some of its values. Whilst these SAS statements go smoothly thru, I have noticed that SAS does not produce the WHOLE text in the output as I would anticipate.

for instance: if x=1 then y="TOTAL ONLY, NO SUBSCALES"" ; To see the value of Y, i use proc freq and see only "TOTAL ON" and unfortunately that is it. I am wondering if there is a way to get around this problem and if so, what should I do?

A relevant point is what can be seen from the output of PROC CONTENTS. There, i noticed that some numerical and character variables do not have neither FORMAT nor INFORMAT and i want to create them. Likewise, i would also like to modify the FORMAT and INFORMAT of few existing variables. I wonder what i need to do in order to make these changes happen.

I would be grateful to you all if I would receive any advice and comments on what to do in order to proceed.

Thank you very much indeed for taking time to consider my request. I look forward to hearing from you.

Yours sincerely Panos.


Back to: Top of message | Previous page | Main SAS-L page