Print a list and export as txt fileWould this be possible with JSL?
For convenience sake I would like it to be printed out into a seperate txt file.
My scuffed solution would be to print it into the debug log which would also work but you'd have to go into the debug mode everytime you want to look up something.
dt = Current Data Table();
L = dt << Get Column Names(String);
for(i = 1, i < N items(L)+1, i++,
Print(L[i],i); // prints the string in the list and it's position next to it
);
Automation and ScriptingConsumer and Market ResearchBetreff: Liste drucken und als TXT-Datei exportierenDieses Skript schreibt die Spaltennamen in das JMP-Protokoll und speichert es dann in einer Textdatei
Names Default To Here( 1 );
dt = Current Data Table();
L = dt << Get Column Names( String );
theText = "";
For( i = 1, i < N Items( L ) + 1, i++,
Write( L[i] || " " || Char( i ) || "\!n" );
theText = theText || L[i] || " " || Char( i ) || "\!n";
);
Save Text File( "path/filename.txt", theText );