Thank you, But it is not running... this is the program: data dados; set t1 t2 t3 t4 t5 t6; trivar = put(tri_varia_abs,commax12.0); trivarp = Put(Tri_Varia_pc,commax12.1); if ano = 2015 and indicadores ='a_pop_total' and tri = 'jan-fev-mar' and tri_situac = '*' and tri_varia_abs > 0 then text1 = catx(' ','A ', indicadores, 'aumentou em ' , trivar,'mil pessoas, um aumento de ' , trivarp,'% em relação ao trimestre anterior.'); put (_all_) (=/); cards; if ano = 2015 and indicadores ='a_pop_total' and tri = 'jan-fev-mar' and tri_situac = '*' and tri_varia_abs < 0 then text1 = catx(' ','A ', indicadores , 'diminuiu em ' , trivar,'mil pessoas, um aumento de ' , trivarp,'% em relação ao trimestre anterior.'); put (_all_) (=/); cards; if ano = 2015 and indicadores ='a_pop_total' and tri = 'jan-fev-mar' and tri_situac ne '*' then text1 = catx(' ','A ', indicadores, ' não apresentou variação estatísticamente significativa em relação ao trimestre anterior.'); put (_all_) (=/); cards; run; and this is the Log: 26 if ano = 2015 and indicadores ='a_pop_total' and tri = 'jan-fev-mar' and tri_situac = '*' and tri_varia_abs < 0 then __ 180 26 ! text1 = catx(' ','A ', indicadores , 'diminuiu em ' , trivar,'mil pessoas, um aumento de ' , trivarp,'% em relação ao 26 ! trimestre anterior.'); ERROR 180-322: Statement is not valid or it is used out of proper order. 27 put (_all_) (=/); ___ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 28 cards; _____ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 29 if ano = 2015 and indicadores ='a_pop_total' and tri = 'jan-fev-mar' and tri_situac ne '*' then text1 = catx(' ','A ', __ 180 29 ! indicadores, ' não apresentou variação estatísticamente significativa em relação ao trimestre anterior.'); ERROR 180-322: Statement is not valid or it is used out of proper order. 30 put (_all_) (=/); ___ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 31 cards; _____ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 32 33 run;
... View more