16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Exit Values<br />

Portability<br />

2. To convert the file mbcsdata, which is in code page IBM-932 (doublebyte<br />

ASCII), to code page IBM-939 and put the output in a file called dbcsdata:<br />

iconv –f IBM-932 –t IBM-939 mbcsdata > dbcsdata<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v Insufficient memory<br />

v Inability to open the input file<br />

v Incorrect or unknown option<br />

2 Input contained a character sequence that is not permitted in the source<br />

codeset<br />

X/Open Portability Guide.<br />

id — Return the user identity<br />

Format<br />

Description<br />

–v is an extension to the P<strong>OS</strong>IX.2 standard. The –c, –l, and –s options are<br />

extensions to the XPG standard.<br />

id [user]<br />

id –G [–n] [user]<br />

id –g [–nr] [user]<br />

id –u [–nr] [user]<br />

id –M<br />

id displays the user name and group affiliations of the user who issued the<br />

command. Specifying a user argument on the command line displays the same<br />

information for the given user instead of the person invoking id. In this case, you<br />

require appropriate permissions.<br />

The output has the format:<br />

uid=runum(username) gid=rgnum(groupname)<br />

where runum is the user’s real user ID (UID) number, username is the user’s real<br />

user name, rgnum is the user’s real group ID (GID) number, and groupname is the<br />

user’s real group name.<br />

A user’s real and effective IDs may differ. In this case, there may be separate<br />

entries for effective user ID (UID) with the format:<br />

euid=eunum(euname)<br />

where eunum is the effective user ID number and euname is the effective user<br />

name. An entry for effective group ID has the format:<br />

egid=egnum(egname)<br />

where egnum is the effective group ID number and egname is the effective group<br />

name.<br />

iconv<br />

Chapter 2. Shell command descriptions 311

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!