It's all about the answers!

Ask a question

How do I run a shell script in ASCII on USS?


Spencer Murata (2.3k115870) | asked Jan 21 '13, 12:15 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
 How do I run a shell script in ASCII on USS?  I have a script that runs on z/OS from a Unix mounted drive.  Can I run the script on z/OS?

Accepted answer


permanent link
Spencer Murata (2.3k115870) | answered Jan 21 '13, 12:16 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
It may be sufficient to mount the filesystem and tag it as ASCII, as described in http://www-01.ibm.com/support/docview.wss?uid=isg3T1000083. The article refers to Linux filesystems, but the approach should be similar.

The chtag command can be used to mark files as ASCII and make them readable in EBCDIC filesystems, if the actual script is being copied to the USS system to be executed. Once tagged, USS should execute it properly.

chtag -tc ISO8859-1 script.sh

would tag the script as ASCII.

~Spencer
Spencer Murata selected this answer as the correct answer

Your answer


Register or to post your answer.