Here is the code and error log below,
91   rsubmit;
NOTE: Remote submit to DV commencing.
292  %let START_YYYYMMDD=20100801;
293  proc sql noprint;
294  connect to teradata as tera (tdpid=PTIA1EDW user="XXXXX" password=XXXXX);
295     create table abc as
296       select * from connection to tera
297     ( select row_id, 
298              c_num,
299              c_status,
300              c_type,
301              input(put( datepart(start_dt), yymmddn8.), 8.) as max_start_dt
302       from w_source_d
303       where
304          upper(c_type)='IND' and
305          camp_status in ('L','C') and
306         datepart(start_dt) >= input( "&START_YYYYMMDD", yymmdd8.)
307     );
ERROR: Teradata prepare: Syntax error: expected something between ',' and the 'input' keyword. SQL statement was: select row_id, c_num, c_status, c_type, 
input(put( datepart(start_dt), yymmddn8.), 8.) as max_start_dt from w_source_d 
where upper(c_type)='IND' and camp_status in ('L','C') and 
datepart(start_dt) >=input( "&START_YYYYMMDD", yymmdd8.).
Thanks