cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-17975%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EErfassen%20der%20Protokolldatei%20w%C3%A4hrend%20einer%20nicht%20interaktiven%20JMP-Skriptsitzung%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17975%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3EHallo%2C%3C%2FP%3E%3CP%3EIch%20wei%C3%9F%2C%20dass%20dies%20schon%20einmal%20gefragt%20wurde%2C%20aber%20die%20genannte%20L%C3%B6sung%20hat%20bei%20mir%20nicht%20funktioniert.%20Ich%20m%C3%B6chte%20in%20das%20Protokoll%20schreiben%20und%20die%20Ausgabe%20w%C3%A4hrend%20eines%20bestimmten%20Teils%20meines%20Skripts%20speichern.%3C%2FP%3E%3CP%3EDie%20Protokollerfassung()%20funktioniert%2C%20wenn%20ich%20JMP11%20ge%C3%B6ffnet%20habe%2C%20aber%20wenn%20ich%20die%20JSL%20als%20eigenst%C3%A4ndige%2C%20nicht%20interaktive%20Sitzung%20ausf%C3%BChre%2C%20erhalte%20ich%20keine%20Ausgabe.%3C%2FP%3E%3CP%3EIch%20glaube%2C%20das%20Problem%20besteht%20darin%2C%20dass%20beim%20Start%20des%20JMP-Threads%20im%20Hintergrund%20keine%20Protokolldatei%20gestartet%20wird.%20Ich%20habe%20mich%20also%20gefragt%2C%20ob%20Sie%20das%20Protokollfenster%20mit%20etwas%20JSL%20%C3%B6ffnen%20k%C3%B6nnen.%3C%2FP%3E%3CP%3EODER%20gibt%20es%20eine%20robustere%20M%C3%B6glichkeit%2C%20die%20Protokolldatei%20zu%20erfassen%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EZu%20Ihrer%20Information%3A%20Der%20Grund%2C%20warum%20ich%20die%20Protokolldateiausgabe%20m%C3%B6chte%2C%20ist%2C%20dass%20ich%20HTML-Tabellen%20aus%20Datentabellen%20erstelle%2C%20also%20wollte%20ich%20eine%20automatisierte%20Ausgabe%3C%2FP%3E%3CP%3ESkript%20statt%2C%20dass%20ich%20JMP%20%C3%B6ffnen%20und%20mein%20Skript%20ausf%C3%BChren%20muss.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EF%C3%BCr%20Vorschl%C3%A4ge%20bin%20ich%20sehr%20dankbar%2C%3C%2FP%3E%3CP%3EDanke%20sch%C3%B6n.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17981%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Erfassen%20der%20Protokolldatei%20w%C3%A4hrend%20einer%20nicht%20interaktiven%20JMP-Skriptsitzung%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17981%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECraige%2C%3C%2FP%3E%3CP%3EMir%20gef%C3%A4llt%20Ihr%20Vorschlag%20zur%20Verwendung%20einer%20JSL-Zeichenfolge%20und%20saveTextFile.%20Ich%20k%C3%B6nnte%20ein%20Update%20durchf%C3%BChren%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Fdocs%2FDOC-6420%22%20target%3D%22_blank%22%3E%20Datentabelle%20nach%20HTML%20exportieren%3C%2FA%3E%20um%20dies%20zu%20tun.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EAktualisieren%3A%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Fdocs%2FDOC-6420%22%20target%3D%22_blank%22%3E%20Datentabelle%20nach%20HTML%20exportieren%3C%2FA%3E%20wurde%20jetzt%20aktualisiert%2C%20um%20auf%20diese%20Weise%20zu%20funktionieren.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17980%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Erfassen%20der%20Protokolldatei%20w%C3%A4hrend%20einer%20nicht%20interaktiven%20JMP-Skriptsitzung%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17980%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EMich%20interessiert%2C%20wie%20Sie%20das%20erreichen%3A%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23555555%3B%20font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20font-size%3A%2013px%3B%22%3E%E2%80%9ESie%20haben%20Recht%2C%20wenn%20Sie%20sagen%2C%20dass%20JMP%20ge%C3%B6ffnet%20werden%20muss%2C%20aber%20es%20%C3%B6ffnet%20sich%20als%20Prozessthread%20im%20Hintergrund.%E2%80%9C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23555555%3B%20font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20font-size%3A%2013px%3B%22%3EWelches%20Betriebssystem%20verwenden%20Sie%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23555555%3B%20font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20font-size%3A%2013px%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23555555%3B%20font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20font-size%3A%2013px%3B%22%3EEs%20gibt%20viele%20M%C3%B6glichkeiten%2C%20ein%20automatisiertes%20Skript%20auszuf%C3%BChren%2C%20das%20JMP%20tats%C3%A4chlich%20%C3%B6ffnet%2C%20beispielsweise%20%C3%BCber%20eine%20.bat-Datei.Funktioniert%20das%20auch%20nicht%3F%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17979%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Erfassen%20der%20Protokolldatei%20w%C3%A4hrend%20einer%20nicht%20interaktiven%20JMP-Skriptsitzung%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17979%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20bin%20mir%20nicht%20sicher%2C%20ob%20das%20funktioniert%2C%20aber%20es%20ist%20einen%20Versuch%20wert%20...%20in%20den%20Windows-spezifischen%20Einstellungen%20oder%20senden%20(nat%C3%BCrlich%20in%20einem%20*vorherigen*%20Lauf%2C%20so%20oder%20so)%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%208pt%3B%20font-family%3A%20'courier%20new'%2C%20courier%3B%22%3EEinstellungen(Log%20Open%20Strategy(%20%E2%80%9EStartup%E2%80%9C))%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EWenn%20Sie%20HTML%20im%20Protokollfenster%20erstellen%2C%20sollten%20Sie%20alternativ%20in%20Betracht%20ziehen%2C%20es%20stattdessen%20in%20einer%20JSL-Zeichenfolge%20zu%20erstellen%20und%20die%20Zeichenfolge%20dann%20mit%20saveTextFile%20zu%20speichern.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EWelchen%20Ansatz%20verwenden%20Sie%2C%20um%20JMP%20zu%20starten%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ECraige%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17978%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Erfassen%20der%20Protokolldatei%20w%C3%A4hrend%20einer%20nicht%20interaktiven%20JMP-Skriptsitzung%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17978%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EVersuchen%20Sie%2C%20die%20Funktion%20BatchInteractive()%20festzulegen.Dies%20k%C3%B6nnte%20Ihr%20Problem%20l%C3%B6sen.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBatchInteractive(0)%3B%20oder%20BatchInteractive(1)%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17977%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Erfassen%20der%20Protokolldatei%20w%C3%A4hrend%20einer%20nicht%20interaktiven%20JMP-Skriptsitzung%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17977%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDas%20ist%20der%20Beitrag%2C%20auf%20den%20ich%20mich%20beziehe%2C%20danke.%3C%2FP%3E%3CP%3EDer%20von%20Ihnen%20vorgeschlagene%20Codeausschnitt%20wird%20nicht%20funktionieren%2C%20wie%20unten%20zu%20sehen%20ist.%20Offenes%20Protokoll%20scheint%20kein%20g%C3%BCltiger%20Befehl%20zu%20sein.%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3EProtokoll%20%C3%B6ffnen%3CSTRONG%3E%20()%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000080%3B%20font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000080%3B%20font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%230000dd%3B%20font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3Ezeigen%3C%2FSPAN%3E%3CSTRONG%20style%3D%22%3A%20%3B%20font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3E%20ist%20das%20Protokoll%20ge%C3%B6ffnet%3CSTRONG%3E%20())%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000080%3B%20font-size%3A%2012pt%3B%20font-family%3A%20Courier%20New%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EWenn%20ich%20eine%20JMP-Sitzung%20%C3%B6ffne%20und%20mein%20Skript%20%C3%B6ffne%20und%20es%20dann%20ausf%C3%BChre%2C%20funktioniert%20die%20Funktion%20%E2%80%9Ecapture%20log()%E2%80%9C.%20Tats%C3%A4chlich%20habe%20ich%20urspr%C3%BCnglich%20den%20Befehl%20%E2%80%9Esave%20log()%E2%80%9C%20verwendet%2C%20als%20ich%20das%20Skript%20manuell%20ausgef%C3%BChrt%20habe%2C%20bevor%20ich%20nach%20einer%20automatisierten%20L%C3%B6sung%20gesucht%20habe.%3C%2FP%3E%3CP%3ESie%20haben%20Recht%2C%20wenn%20Sie%20sagen%2C%20dass%20JMP%20ge%C3%B6ffnet%20werden%20muss%2C%20aber%20es%20%C3%B6ffnet%20sich%20als%20Prozessthread%20im%20Hintergrund%20und%20Sie%20k%C3%B6nnen%20es%20nicht%20wirklich%20sehen.%20Aus%20diesem%20Grund%20glaube%20ich%2C%20dass%20das%20Protokoll%20beim%20%C3%96ffnen%20nicht%20automatisch%20mit%20diesem%20Prozess%20ge%C3%B6ffnet%20wird.%3C%2FP%3E%3CP%3EDanke%20f%C3%BCr%20Ihre%20Antwort.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-17976%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Erfassen%20der%20Protokolldatei%20w%C3%A4hrend%20einer%20nicht%20interaktiven%20JMP-Skriptsitzung%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-17976%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EBeziehen%20Sie%20sich%20darauf%3F%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Fmessage%2F223177%22%20target%3D%22_blank%22%3E%20Betreff%3A%20Kann%20ich%20das%20Protokoll%20einer%20ausf%C3%BChrbaren%20JSL%20(%5C!)%20anzeigen%3F%3C%2FA%3E%20Wenn%20nicht%2C%20schauen%20Sie%20es%20sich%20an.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EMit%20den%20folgenden%20Befehlen%20k%C3%B6nnen%20Sie%20das%20Protokoll%20%C3%B6ffnen%20und%20pr%C3%BCfen%2C%20ob%20es%20ge%C3%B6ffnet%20ist%3A%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20%230000dd%3B%22%3EProtokoll%20%C3%B6ffnen%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%22%3E%20()%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20navy%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20%230000dd%3B%22%3EZeigen%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%22%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20%230000dd%3B%22%3E%20Ist%20das%20Protokoll%20ge%C3%B6ffnet%3F%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%22%3E%20()%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20font-family%3A%20Consolas%3B%20color%3A%20navy%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EAber%20ich%20denke%2C%20Sie%20%C3%BCbersehen%20etwas%2C%20wenn%20Sie%20sagen%3A%20%E2%80%9E%3CSPAN%20style%3D%22color%3A%20%23555555%3B%20font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%20font-size%3A%2013px%3B%22%3E%20Die%20Protokollerfassung()%20funktioniert%2C%20wenn%20ich%20JMP11%20ge%C3%B6ffnet%20habe%2C%20aber%20wenn%20ich%20die%20JSL%20als%20eigenst%C3%A4ndige%2C%20nicht%20interaktive%20Sitzung%20ausf%C3%BChre%2C%20erhalte%20ich%20keine%20Ausgabe.%E2%80%9C%3C%2FSPAN%3EDamit%20JSL%20ausgef%C3%BChrt%20werden%20kann%2C%20muss%20JMP%20ge%C3%B6ffnet%20werden.JSL%20wird%20nur%20%C3%BCber%20jmp.exe%20ausgef%C3%BChrt%2C%20das%20%C3%BCber%20eine%20Eingabeaufforderung%20oder%20irgendwo%20anders%20JMP%20%C3%B6ffnet.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
lenny
Level II

Capturing the log file during a non interactive JMP script session

Hi there,

I Know this was asked before but the solution mentioned didn't work for me. I want to write to the log and save the output during a specific portion of my script.

The log capture() works when I have JMP11 open but when I run the jsl as a stand alone non interactive session I get no output.

I believe the problem is that there is no log file started initally when the JMP thread starts in the background, so I was wondering if you can open the log window with some jsl??

OR is there a more robust way to capture the log file.

FYI.. the reason I want the log file output is because i am constructing html tables from data tables so I wanted an automated

script rather than me having to open JMP and run my script.

Any suggestions greatly appreciate,

Thank you.

6 REPLIES 6
msharp
Super User (Alumni)

Re: Capturing the log file during a non interactive JMP script session

Are you referring to this Re: Can I view the log of an executable (\!) JSL? If not look check it out.

You can open the log and see if it's open with these commands:

Open Log();

Show( Is Log Open() );

But, I think you are missing something when you say:  "The log capture() works when I have JMP11 open but when I run the jsl as a stand alone non interactive session I get no output."  In order for JSL to run JMP has to open.  JSL only runs through jmp.exe which running from a command prompt or anywhere will open JMP.

lenny
Level II

Re: Capturing the log file during a non interactive JMP script session

That is the post I am referring to thanks.

That code snippet you suggested will not work as seen below open log doesn't appear to be a valid command.

open log();

show(is log open());

When I open a JMP session and open my script and then run it, the capture log() works in fact I was originally using the save log() command when I ran the script manually, before I started looking at an automated solution.

You are correct when you say JMP has to open but it opens up as a process thread in the background and you cant actually see it, this is why I believe when it opens the log doesn't automatically open with that process.

Thank you for your reply.

txnelson
Super User

Re: Capturing the log file during a non interactive JMP script session

Try setting the BatchInteractive() function.  This may solve your issue.

BatchInteractive(0); or BatchInteractive(1);

Jim
msharp
Super User (Alumni)

Re: Capturing the log file during a non interactive JMP script session

I'm interested in how you're accomplishing this:

"You are correct when you say JMP has to open but it opens up as a process thread in the background"

What operating system are you using?


There are many ways to run an automated script that will actually open JMP, for example, through a .bat file.  Will this not work either?

Craige_Hales
Super User

Re: Capturing the log file during a non interactive JMP script session

Not sure this will do it, but worth a try...in the windows-specific prefs, or submit (in a *previous* run either way, of course)

Preferences(Log Open Strategy( "Startup" ))

Alternatively, if you are building HTML in the log window, consider building it in a JSL string instead, then using saveTextFile to save the string.

What approach are you using to start JMP? 

Craige

Craige

Re: Capturing the log file during a non interactive JMP script session

Craige,

I like your suggestion about using a JSL string and saveTextFile. I might update Export Data Table to HTML​ to do this.

Update: Export Data Table to HTML​ is now updated to work this way.

Recommended Articles