IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

OMVS Issue: FSUM7351 not found


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

New User


Joined: 04 Apr 2008
Posts: 28
Location: Chennai

PostPosted: Tue Oct 04, 2011 1:35 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 04, 2011 2:51 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 04, 2011 5:31 pm
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: 28
Location: Chennai

PostPosted: Thu Oct 06, 2011 11:54 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 06, 2011 12:02 pm
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: 28
Location: Chennai

PostPosted: Thu Oct 06, 2011 12:09 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 06, 2011 12:34 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Oct 06, 2011 4:41 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts A directory in the pathname was not f... ABENDS & Debugging 0
No new posts Facing ABM3 issue! CICS 3
Search our Forums:

Back to Top