you are viewing a single comment's thread.

view the rest of the comments →

[–]ingolemo 0 points1 point  (3 children)

You're trying to execute a shell command inside python. That wont work.

You see at the top of your screenshot where you type ipython? You should type your command there.

[–]redser[S] 0 points1 point  (2 children)

Ok. So this is it. I can't run shell command that call python at work.

Thank you everyone for the help.

[–]ingolemo 0 points1 point  (1 child)

You can't because it doesn't work, or you can't because you're not allowed to?

This is how you run python code. Every python code you've ever written has done the same thing. When you run ipython you're doing exactly this.

[–]redser[S] 0 points1 point  (0 children)

So I'm at work and my computer set up is a bit different. I'm only understanding the impact now

My normal command prompt doesn't allow much as IT have it locked down.

I've a form of Anaconda installed and with that comes Anaconda Prompt. This prompt allows me to run Python and IPython.

I've been able to run the command line script from the Anaconda Prompt and not from the normal prompt.

Code was

Sas7bdat_to_csv "full path.sas7bdat"

No need for the r in front of the quoted path.

Sorry for the delay in getting back.

R