8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Gurus,
I have a requests to sort data based on AS 400 sorting order. below is example: the data is sorted by ascending order. could anybody explain how AS 400 sort data?
IMM00007
07918607
1242
423 (3 Replies)
Discussion started by: green_k
3 Replies
2. Shell Programming and Scripting
I wants to create 3 users and set password for the users in 400 servers. I can run this script without error. If wants to set the password in the same command it is not working. Like that i have to create 3 users
#!/usr/bin/ksh
for server in `cat /tmp/servers`
do
echo "servername =... (5 Replies)
Discussion started by: G0kulakrishnan
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need to C&P the first 400,000 lines of a log file into a compressed file using Putty. I already tried emailing myself using mailx (didnt send) and used head -400000 access_log > /tmp/access_log to move the relevant lines into it's own file. And when I tried increasing the scroll back max... (2 Replies)
Discussion started by: Mbohmer
2 Replies
4. UNIX for Dummies Questions & Answers
Hi everybody,,,,
This is kunal here, I am very new to as/400 and recently started working on it in one of IT company....I am planning to have Certification exam of AS/400.
Can anybody please send me the links of different sites where I can have study material of AS/400 and also the details... (1 Reply)
Discussion started by: kunalpatil09
1 Replies
5. UNIX for Dummies Questions & Answers
hi everyone,,,
Can anybody tell me that whether the AS/400 is an "operating system"
or a "Server" ?
thanks in advance....
please if possible reply urgently,,,i am waiting..... (8 Replies)
Discussion started by: kunalpatil09
8 Replies
6. Red Hat
#ls -l
-r-------- 1 root root 0 Oct 21 01:50 hello.txt
#cat > hello.txt
Hello World!
ctrl+d
#cat hello.txt
Hello World!
How come root can still write to this file even though the file is read only..? (5 Replies)
Discussion started by: dplinux
5 Replies
7. Solaris
Hi All,
Sorry if the question is trivial for you but, I am new to Apache (2.0.63) and am trying to figure out how to display my 400.cgi. Here is what I have in httpd.conf
servername testing
DocumentRoot "/usr/local/apache2/htdocs"
ErrorDocument 400 /cgi-bin/badrequest-400.cgi
Here is... (0 Replies)
Discussion started by: afadaghi
0 Replies
8. Shell Programming and Scripting
it's possible connect to as-400 system to extract file from server and calculate the data (parse the file)????
if possible , how make the operation ???
how shell language /type i use ???
tanks (0 Replies)
Discussion started by: ZINGARO
0 Replies
bytes(3pm) Perl Programmers Reference Guide bytes(3pm)
NAME
bytes - Perl pragma to force byte semantics rather than character semantics
SYNOPSIS
use bytes;
no bytes;
DESCRIPTION
The "use bytes" pragma disables character semantics for the rest of the lexical scope in which it appears. "no bytes" can be used to
reverse the effect of "use bytes" within the current lexical scope.
Perl normally assumes character semantics in the presence of character data (i.e. data that has come from a source that has been marked as
being of a particular character encoding). When "use bytes" is in effect, the encoding is temporarily ignored, and each string is treated
as a series of bytes.
As an example, when Perl sees "$x = chr(400)", it encodes the character in UTF-8 and stores it in $x. Then it is marked as character data,
so, for instance, "length $x" returns 1. However, in the scope of the "bytes" pragma, $x is treated as a series of bytes - the bytes that
make up the UTF8 encoding - and "length $x" returns 2:
$x = chr(400);
print "Length is ", length $x, "
"; # "Length is 1"
printf "Contents are %vd
", $x; # "Contents are 400"
{
use bytes;
print "Length is ", length $x, "
"; # "Length is 2"
printf "Contents are %vd
", $x; # "Contents are 198.144"
}
For more on the implications and differences between character semantics and byte semantics, see perlunicode.
SEE ALSO
perlunicode, utf8
perl v5.8.0 2002-06-01 bytes(3pm)