IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Reading date from Parm Card In SAS


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
balaji.edu

New User


Joined: 09 Aug 2008
Posts: 7
Location: Hyderabad

PostPosted: Thu Mar 12, 2009 10:23 pm
Reply with quote

Iam Reading the date from the Parm card in the belwo SAS code

RETAIN CYCLEDT 0
INFILE DATECARD;
IF _N_ = 1 THEN DO;
INPUT
@1 CYCLEDT 8.;

IF CYCLEDT = . THEN ABORT ABEND 16;
END;

the sas log has an error of cycledt not initalized. the error is
NOTE: Variable CYCLEDT is uninitialized.

i tried searchin in google is asys probable error are spelling mistake or using it in the right side of assgnment statement before it has been assigned any with any valus.but both are not true in my case

Thanks,
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 12, 2009 10:44 pm
Reply with quote

See my notes in your other post. Your SAS code is incorrectly set up and the IF _N_ = 1 is on the wrong DATA step.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top