Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Query on SAS programming.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
BAJJI

New User


Joined: 15 Jul 2005
Posts: 47

PostPosted: Wed Mar 08, 2006 9:40 am    Post subject: Query on SAS programming.
Reply with quote

Hi,

I am abit new to SAS programming, I wanted to know what the declarations like $ and @ mean in the following piece of SAS code.

;INFILE IN1
;
; INPUT TSTM TSTD TSTY
; FILE OUT
; NOW = MDY(TSTM,TSTD,TSTY)
;
;INFILE IN2
;
;INPUT N1 1-8 N2 $10 N3 $72
; IF NOW = MDY(06,30,2000)
;PUT N1 MMDDYY4. @5 N1 YEAR4. @10 N2 @72 N3

Thanks in advance,
Kiran.
Back to top
View user's profile Send private message

amsadiq

New User


Joined: 05 Apr 2005
Posts: 1

PostPosted: Mon Mar 20, 2006 12:17 pm    Post subject: Re: Query on SAS programming.
Reply with quote

Hi Bajji,

@ indicates the starting position of the field in the file

$ indicates that it is Standard Character data


Hope you got it.

Bye
Back to top
View user's profile Send private message
rameshbabu
Warnings : 1

New User


Joined: 23 May 2005
Posts: 27

PostPosted: Mon Mar 20, 2006 7:22 pm    Post subject: Re: Query on SAS programming.
Reply with quote

@ symbol using for lindication of the field offset and $ sign for the field is alphanumeric
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us