Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
OMVS Command Issue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
David Beckham

New User


Joined: 04 Apr 2008
Posts: 26
Location: Chennai

PostPosted: Tue Oct 04, 2011 1:35 pm    Post subject: OMVS Command Issue
Reply with quote

Hi,

I am not able to execute OMVS system commands like pwd, ls, chmod,etc.., from OMVS.. It give the following error message

FSUM7351 not found

I have checked the command members are in /bin directory, but I am not sure why it's not finding the members. Please Help.

Thanks,
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Tue Oct 04, 2011 2:51 pm    Post subject: Reply to: OMVS Command Issue
Reply with quote

Quote:
The FSUM7351 means the following:
Explanation: You attempted to execute a command that could not be found
User Response: Ensure that the command exists and that the PATH
environment variable is valid.


I tend to trust more system messages than the user judgement icon_biggrin.gif

issue the command echo $PATH to see the <unix> search path for executables
and amend accordingly

most probably You have a bad setup!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Tue Oct 04, 2011 5:31 pm    Post subject:
Reply with quote

Quote:
I have checked the command members are in /bin directory, but I am not sure why it's not finding the members.
If your site uses RACF, and if your OMVS segment is not set up correctly, it would not matter that /bin has the program binaries. The same would apply, as enrico pointed out, if your PATH did not include /bin in it.
Back to top
View user's profile Send private message
David Beckham

New User


Joined: 04 Apr 2008
Posts: 26
Location: Chennai

PostPosted: Thu Oct 06, 2011 11:54 am    Post subject:
Reply with quote

The PATH variable looked like this in the /etc/profile

PATH=/bin.
export PATH

I have changed it as following by referring the other LPAR in our system

PATH=/bin:/usr/lpp/java/IBM/J1.4/bin:.
export PATH

So, Now the commands work in OMVS session. Thanks...
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu Oct 06, 2011 12:02 pm    Post subject: Reply to: OMVS Command Issue
Reply with quote

a proper path should contain at least

for a <normal> user
/bin:/usr/bin:/usr/local/bin

for a user with <admin> capabilities ( the adjective depends on the <unix/linux> brand )
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

the /usr/local things depend on the overall system setup

some unix/linux brands also install products in /opt so ...
Back to top
View user's profile Send private message
David Beckham

New User


Joined: 04 Apr 2008
Posts: 26
Location: Chennai

PostPosted: Thu Oct 06, 2011 12:09 pm    Post subject:
Reply with quote

I am confused. /etc/profile is common for all the users, right? Do I need to specify two different PATH in the same profile for different users(normal and admin)?

Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu Oct 06, 2011 12:34 pm    Post subject: Reply to: OMVS Command Issue
Reply with quote

read the OMVS Unix System Service manuals for the exact details

as a general logic these tables are common behavior


processing sequence for BASH
Code:
+----------------+-----------+-----------+------+
|                |Interactive|Interactive|Script|
|                |login      |non-login  |      |
+----------------+-----------+-----------+------+
|/etc/profile    |   A       |           |      |
+----------------+-----------+-----------+------+
|/etc/bash.bashrc|           |    A      |      | (*)
+----------------+-----------+-----------+------+
|~/.bashrc       |           |    B      |      |
+----------------+-----------+-----------+------+
|~/.bash_profile |   B1      |           |      |
+----------------+-----------+-----------+------+
|~/.bash_login   |   B2      |           |      |
+----------------+-----------+-----------+------+
|~/.profile      |   B3      |           |      |
+----------------+-----------+-----------+------+
|BASH_ENV        |           |           |  A   |
+----------------+-----------+-----------+------+
|                |           |           |      |
+----------------+-----------+-----------+------+
|                |           |           |      |
+----------------+-----------+-----------+------+
|~/.bash_logout  |    C      |           |      |
+----------------+-----------+-----------+------+


sometimes instead of
+----------------+-----------+-----------+------+
|/etc/bash.bashrc|           |    A      |      | 
+----------------+-----------+-----------+------+
is used
+----------------+-----------+-----------+------+
|/etc/bashrc     |           |    A      |      | 
+----------------+-----------+-----------+------+




processing sequence for ZSH
Code:
+----------------+-----------+-----------+------+
|                |Interactive|Interactive|Script|
|                |login      |non-login  |      |
+----------------+-----------+-----------+------+
|/etc/zshenv     |    A      |    A      |  A   |
+----------------+-----------+-----------+------+
|~/.zshenv       |    B      |    B      |  B   |
+----------------+-----------+-----------+------+
|/etc/zprofile   |    C      |           |      |
+----------------+-----------+-----------+------+
|~/.zprofile     |    D      |           |      |
+----------------+-----------+-----------+------+
|/etc/zshrc      |    E      |    C      |      |
+----------------+-----------+-----------+------+
|~/.zshrc        |    F      |    D      |      |
+----------------+-----------+-----------+------+
|/etc/zlogin     |    G      |           |      |
+----------------+-----------+-----------+------+
|~/.zlogin       |    H      |           |      |
+----------------+-----------+-----------+------+
|                |           |           |      |
+----------------+-----------+-----------+------+
|                |           |           |      |
+----------------+-----------+-----------+------+
|~/.zlogout      |    I      |           |      |
+----------------+-----------+-----------+------+
|/etc/zlogout    |    J      |           |      |
+----------------+-----------+-----------+------+


sometimes the names change because it is common practice to use something along the lines of
Code:
if  [ -f /etc/<profilename> ] ; then
    . /etc/<profilename>
fi
and
Code:
if  [ -f ~/<profilename> ] ; then
    . ~/<profilename>
fi

repeated as many times needed for different aspects of the profile
PATH, ALIAS, COLOR SETTING, ...

Quote:
Do I need to specify two different PATH in the same profile for different users(normal and admin)?


usually depends on the standards
on linux systems a test is made on the uid and the path is set accordingly
UIDs grater than a certain number are usually just plain users
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Thu Oct 06, 2011 4:41 pm    Post subject:
Reply with quote

Quote:
I am confused. /etc/profile is common for all the users, right? Do I need to specify two different PATH in the same profile for different users(normal and admin)?
/etc/profile is common for all OMVS users in Unix System Services. However, individuals can create a .profile in their home directory, and the values in it override the /etc/profile values.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us