Hi, Is there more output? You said: Proc print; By Desc; This will group the output by DESC, so the first group will be all of the observations (records) where Desc is empty, the next group should be the records where Desc is 'BLUE MOON VARIETY', and so on.
If you only want to see the observations sorted, leave out the By Desc in the proc print; Gadi "Ron Thomas" <[email protected]> wrote in message news:<[email protected]>... > Hello > > > I have coded a simple SAS Module, when i printed when the description is > comming in quotes. Could some one please help me understand why the quotes is > comming ? > > > OPTIONS OBS=MAX; > > DATA A1; > INFILE IN1; > INPUT @1 ITEM 9. > @10 DESC $25.; > *DATA A2; > * INFILE IN2; > * INPUT @1 ITEM 9. > * @10 DESC $25.; > > DATA A3; > SET A1; > > PROC PRINT DATA=A3; > TITLE 'ITEM DETAILS -APPEND DATA STEP'; > RUN; > > *PROC APPEND BASE=A1 DATA=A2; > > *PROC PRINT DATA=A1; > *TITLE 'ITEM DETAILS - APPEND PROC'; > *RUN; > > PROC SORT DATA=A3 OUT=A4; > BY DESC; > RUN; > > PROC PRINT DATA=A4; > BY DESC; > TITLE 'ITEM DETAILS - SORTED'; > RUN; > > > 642619109NEW BEL SUMMER FOLLY > 642621639 > 642621839SCHLAFLY PALE ALE > 645051939CANADA DRY GINGERALE > 645051969BLUE MOON VARIETY > 645052399 > 645052569COUNTRYTIME LEMONADE > > ********************************* Top of Data **************************** > ITEM DETAILS -APPEND DATA STEP 23:41 > > Obs ITEM DESC > > 1 642619109 NEW BEL SUMMER FOLLY > 2 642621639 > 3 642621839 SCHLAFLY PALE ALE > 4 645051939 CANADA DRY GINGERALE > 5 645051969 BLUE MOON VARIETY > 6 645052399 > 7 645052569 COUNTRYTIME LEMONADE > ITEM DETAILS - SORTED 23:41 > > ------------------------------- DESC=' ' ------------------------------------ > > Obs ITEM > > 1 642621639 > > Thanks > Ron T > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > לשימת לבך, בהתאם לנהלי חברת מלם מערכות בע"מ ו/או כל חברת בת ו/או חברה קשורה שלה (להלן : "החברה") וזכויות החתימה בהן, כל הצעה, התחייבות או מצג מטעם החברה, מחייבים מסמך נפרד וחתום על ידי מורשי החתימה של החברה, הנושא את לוגו החברה או שמה המודפס ובצירוף חותמת החברה. בהעדר מסמך כאמור (לרבות מסמך סרוק) המצורף להודעת דואר אלקטרוני זאת, אין לראות באמור בהודעה אלא משום טיוטה לדיון, ואין להסתמך עליה לביצוע פעולה עסקית או משפטית כלשהי. Please note that in accordance with Malam and/or its subsidiaries (hereinafter : "Malam") regulations and signatory rights, no offer, agreement, concession or representation is binding on the Malam, unless accompanied by a duly signed separate document (or a scanned version thereof), affixed with the Malam seal. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
