Data Prep Sheet

Action Principale : alterTable

Preparation Code

Script awaiting validation
Copied!
1PROC CAS;
2 datastep.runCode{
3 code='data CASUSER.MI_TABLA;
4 length ID_Producto $ 10 Nombre_Producto $ 50;
5 label ID_Producto="ID del Producto"
6 Nombre_Producto="Nombre del Producto"
7 Precio="Precio Unitario"
8 Stock="Cantidad en Stock";
9 format Precio dollar8.2;
10 infile datalines delimiter=",";
11 input ID_Producto $ Nombre_Producto $ Precio Stock;
12 datalines;
13 PROD001,Laptop,1200.50,50
14 PROD002,Smartphone,800.75,150
15 PROD003,Tablet,450.00,200
16 PROD004,Monitor,300.25,80
17 ;
18 run;'
19 };
20QUIT;
Actions using this script
  • table alterTable En cours
  • No other action uses this exact script.