Quantcast

Fwd: ess sas interactive (remote)

classic Classic list List threaded Threaded
29 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ess sas interactive (remote)

Sparapani, Rodney
On 08/12/2013 03:00 AM, Vitalie Spinu wrote:
> Should not be.
>

OK, I've got...
(ess-version)
"ess-version : 13.05-1 [rev. 5712 (2013-08-11)]"

> This is what I have without having sas installed. Start shell. Then M-x
> ess-sas-interactive. Goto to test.sas and execute some paragraph with
> C-c C-c. It is being sent to inferior shell program.
>

Yes, that works connecting to remote SAS.  Which is an improvement
IIRC.  Bug fixed!?!

> C-c C-s in test.sas buffer asks whether to connect to *iESS[SAS]* or
> create new process.
>
> Rodney?
>

Same for me as to the question asked.  However, nothing is exectuted
AFAICT.

>      Vitalie
>
>
> BTW, in my case ESS opens 4 new buffers, 2 of which are identical
> *SAS.log*  buffers. That may be because my sas command is actually R.

No, I don't see that.

--
Rodney Sparapani, PhD
Manager of Statistical & Computational Operations
Center for Patient Care and Outcomes Research (PCOR)
Medical College of Wisconsin (MCW), Milwaukee, USA
http://www.linkedin.com/in/rodneysparapani

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ess sas interactive (remote)

Vitalie Spinu-2
 >> Rodney Sparapani <[hidden email]>
 >> on Mon, 12 Aug 2013 11:34:34 -0500 wrote:

 > On 08/12/2013 03:00 AM, Vitalie Spinu wrote:
 >> Should not be.
 >>

 > OK, I've got...
 > (ess-version)
 > "ess-version : 13.05-1 [rev. 5712 (2013-08-11)]"

 >> This is what I have without having sas installed. Start shell. Then M-x
 >> ess-sas-interactive. Goto to test.sas and execute some paragraph with
 >> C-c C-c. It is being sent to inferior shell program.
 >>

 > Yes, that works connecting to remote SAS.  Which is an improvement
 > IIRC.  Bug fixed!?!

You (and Vinh) should tell if it was fixed. I don't have sas to
check. Can you send code from sas script file? If so, then the bug is
fixed.

   Vitalie

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ess sas interactive (remote)

Vinh Nguyen-4
Sorry I won't be able to test until another 12 hours.

On Monday, August 12, 2013, Vitalie Spinu wrote:

>  >> Rodney Sparapani <[hidden email] <javascript:;>>
>  >> on Mon, 12 Aug 2013 11:34:34 -0500 wrote:
>
>  > On 08/12/2013 03:00 AM, Vitalie Spinu wrote:
>  >> Should not be.
>  >>
>
>  > OK, I've got...
>  > (ess-version)
>  > "ess-version : 13.05-1 [rev. 5712 (2013-08-11)]"
>
>  >> This is what I have without having sas installed. Start shell. Then M-x
>  >> ess-sas-interactive. Goto to test.sas and execute some paragraph with
>  >> C-c C-c. It is being sent to inferior shell program.
>  >>
>
>  > Yes, that works connecting to remote SAS.  Which is an improvement
>  > IIRC.  Bug fixed!?!
>
> You (and Vinh) should tell if it was fixed. I don't have sas to
> check. Can you send code from sas script file? If so, then the bug is
> fixed.
>
>    Vitalie
>


--
### Sent from my telephone ###

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ess sas interactive (remote)

Sparapani, Rodney
In reply to this post by Vitalie Spinu-2
On 08/12/2013 12:04 PM, Vitalie Spinu wrote:
>   > Yes, that works connecting to remote SAS.  Which is an improvement
>   > IIRC.  Bug fixed!?!
>
> You (and Vinh) should tell if it was fixed. I don't have sas to
> check. Can you send code from sas script file?

Yes, I can.  Thank you very much!

> If so, then the bug is fixed.
>
>     Vitalie

I think it is.  I was just hedging a bit because C-c C-s seems to be
not working.  But, I have not used C-c C-s so I don't really know
if that is supposed to work or not.

--
Rodney Sparapani, PhD
Manager of Statistical & Computational Operations
Center for Patient Care and Outcomes Research (PCOR)
Medical College of Wisconsin (MCW), Milwaukee, USA
http://www.linkedin.com/in/rodneysparapani

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ess sas interactive (remote)

Vinh Nguyen-4
In reply to this post by Vinh Nguyen-4
On Mon, Aug 12, 2013 at 10:13 AM, Vinh Nguyen <[hidden email]> wrote:
> Sorry I won't be able to test until another 12 hours.

I can confirm that "C-j", "C-r" and "C-c C-c" now sends code from a
sas file buffer to the interactive sas session after launching a shell
and running "ess-sas-interactive" (executes "sas -rsasuser -altlog
.log -altprint .lst -stdio < /dev/tty").

Thanks so much Vitalie!  Consider this solved!

-- Vinh

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ess sas interactive (remote)

Vinh Nguyen-4
On Mon, Aug 12, 2013 at 9:28 PM, Vinh Nguyen <[hidden email]> wrote:
> I can confirm that "C-j", "C-r" and "C-c C-c" now sends code from a
> sas file buffer to the interactive sas session after launching a shell
> and running "ess-sas-interactive" (executes "sas -rsasuser -altlog
> .log -altprint .lst -stdio < /dev/tty").
>
> Thanks so much Vitalie!  Consider this solved!

Is the "< /dev/tty" absolutely critical in the command that
ess-sas-interactive issues to the shell?  I tested on an old solaris
server that has SAS, but it does not have "/dev/tty".  After running
ess-sas-interactive, I get a shell error because of it.  I then
manually issue the sas terminal command without "< /dev/tty", and
things works.  Just thought it'd be more universal to remove that
piece if it isn't too critical.  Thanks.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ess sas interactive (remote)

Sparapani, Rodney
On 08/16/2013 08:23 PM, Vinh Nguyen wrote:
> Is the "< /dev/tty" absolutely critical in the command that
> ess-sas-interactive issues to the shell?  I tested on an old solaris
> server that has SAS, but it does not have "/dev/tty".  After running
> ess-sas-interactive, I get a shell error because of it.  I then
> manually issue the sas terminal command without "< /dev/tty", and
> things works.  Just thought it'd be more universal to remove that
> piece if it isn't too critical.  Thanks.

Hi Vinh:

I believe you are correct.  The -stdio switch should be all
that is needed.  Thanks

--
Rodney Sparapani, PhD
Manager of Statistical & Computational Operations
Center for Patient Care and Outcomes Research (PCOR)
Medical College of Wisconsin (MCW), Milwaukee, USA
http://www.linkedin.com/in/rodneysparapani

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ess sas interactive (remote)

Vinh Nguyen-4
On Thu, Aug 22, 2013 at 11:02 AM, Rodney Sparapani <[hidden email]> wrote:
> I believe you are correct.  The -stdio switch should be all
> that is needed.  Thanks


Here is a patch:
Index: lisp/ess-sas-a.el
===================================================================
--- lisp/ess-sas-a.el   (revision 5744)
+++ lisp/ess-sas-a.el   (working copy)
@@ -812,7 +812,7 @@
     (inferior-ess-mode)
     (ess-eval-linewise (concat ess-sas-submit-command " "
ess-sas-submit-command-options
                                " -altlog " ess-temp-sas-file ".log -altprint "
-                               ess-temp-sas-file ".lst -stdio < /dev/tty"))
+                               ess-temp-sas-file ".lst -stdio"))
     (ess-sas-goto-sas)
     (setq ess-sas-submit-method 'iESS)
     (setq ess-eval-visibly-p nil)


Let me know when it's incorporated.

-- Vinh

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ess sas interactive (remote)

Sparapani, Rodney
On 08/23/2013 05:01 PM, Vinh Nguyen wrote:

> Here is a patch:
> Index: lisp/ess-sas-a.el
> ===================================================================
> --- lisp/ess-sas-a.el   (revision 5744)
> +++ lisp/ess-sas-a.el   (working copy)
> @@ -812,7 +812,7 @@
>       (inferior-ess-mode)
>       (ess-eval-linewise (concat ess-sas-submit-command " "
> ess-sas-submit-command-options
>                                  " -altlog " ess-temp-sas-file ".log -altprint "
> -                               ess-temp-sas-file ".lst -stdio < /dev/tty"))
> +                               ess-temp-sas-file ".lst -stdio"))
>       (ess-sas-goto-sas)
>       (setq ess-sas-submit-method 'iESS)
>       (setq ess-eval-visibly-p nil)
>
>
> Let me know when it's incorporated.
>
> -- Vinh

Done!

--
Rodney Sparapani, PhD
Manager of Statistical & Computational Operations
Center for Patient Care and Outcomes Research (PCOR)
Medical College of Wisconsin (MCW), Milwaukee, USA
http://www.linkedin.com/in/rodneysparapani

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
12
Loading...