How do I run a shell script in ASCII on USS?
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
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
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.