Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes


Accepted answer

Permanent link
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

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 562
× 38

Question asked: Jan 21 '13, 12:15 p.m.

Question was seen: 5,993 times

Last updated: Jan 21 '13, 12:16 p.m.

Confirmation Cancel Confirm