MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DISPLAY DATA using SAS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
js01
Beginner


Joined: 13 Oct 2005
Posts: 84
Topics: 32
Location: INDIA

PostPosted: Wed Mar 10, 2010 3:10 pm    Post subject: DISPLAY DATA using SAS Reply with quote

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
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Wed Mar 10, 2010 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Thu Mar 11, 2010 2:13 am    Post subject: Reply with quote

Code:
           @020 NUM3   $7;
Should perhaps be
Code:
           @020 NUM3   $7.;

_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
js01
Beginner


Joined: 13 Oct 2005
Posts: 84
Topics: 32
Location: INDIA

PostPosted: Fri Mar 12, 2010 12:10 pm    Post subject: Reply with quote

i did modified to

@020 NUM3 $7.
@ ;

and then worked fine

thank you very much for your help
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group