View previous topic :: View next topic |
Author |
Message |
js01 Beginner
Joined: 13 Oct 2005 Posts: 84 Topics: 32 Location: INDIA
|
Posted: Wed Mar 10, 2010 3:10 pm Post subject: DISPLAY DATA using SAS |
|
|
Hi frineds,
I am trying to resolve a issue in my shop and i'm new to SAS,
could you please advice how to display the gives fields , below is the code and results
JCL
Code: |
=============================
//SASJOBUC JOB MSGCLASS=X,
// NOTIFY=&SYSUID,CLASS=T
//STEP01 EXEC SASEU
//SASDAT1 DD DISP=SHR,DSN=SPM.TEST.SAS.DATA.PS
DATA SAS1;
INFILE SASDAT1;
INPUT @001 NUM1 $9.
@011 NUM2 $7.
@020 NUM3 $7;
RUN;
PROC PRINT DATA=SAS1 (OBS=10);
RUN:
===========================
|
input file is SPM.TEST.SAS.DATA.PS
LRECL=264 and RECF = VB
rec in the file is
Code: |
xxxxxxxxxyyyyyyyddddddddddzzzzz
|
output is
Code: |
SCROLL ===> CSR
* TOP OF DATA **********************************
The SAS System
Obs NUM1 NUM2 NUM3
1 xxxxxxxxx yyyyyyd x
BOTTOM OF DATA ********************************
|
|
|
Back to top |
|
 |
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Wed Mar 10, 2010 5:11 pm Post subject: |
|
|
Quote: | could you please advice how to display the gives fields | Please clarify what you are asking. It may help if you show the output you want in addition to the current output. _________________ All the best,
di |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Thu Mar 11, 2010 2:13 am Post subject: |
|
|
Should perhaps be
_________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
 |
js01 Beginner
Joined: 13 Oct 2005 Posts: 84 Topics: 32 Location: INDIA
|
Posted: Fri Mar 12, 2010 12:10 pm Post subject: |
|
|
i did modified to
@020 NUM3 $7.
@ ;
and then worked fine
thank you very much for your help |
|
Back to top |
|
 |
|
|