Cómo exportar datos de columnas a cadena o txtTengo la siguiente tabla de datos, ¿cómo puedo exportar la columna usando JSL?
1. cadena = 561193, 542003, 527679...
2. exportar los datos a .txt donde se muestran los valores: 561193, 542003, 527679...
s
Acceso a los datosRe: Cómo exportar datos de columnas a string o txtAquí hay una manera de hacerlo.
Names Default To Here( 1 );
// Create an example data table
dt = New Table( "Example",
add rows( 100 ),
New Column( "Number", character, set each value( Char( Random Integer( 1000, 9999 ) ) ) )
);
// Convert character column to a literal string value
string = Concat Items( dt:number[Index( 1, N Rows( dt ) )], "," );
// Write the string variable to a .txt file
Save Text File( "$TEMP/savedfile.txt", string );