in reply to Execution error

My thanks to all for the replies. Following are my responses:

================================================

lmgtfy

I am running the script as follows:

1. First I went to AS/400 shell by typing 'qsh'

2. and from shell,

perl tstcmd

======================================

BrowserUk

I have tried with ftp (ASCII mode) and also tried by writing the program using

AS/400 editor itself. But without success.

=======================================

wazoox

I have tried with perl /home/sbhowmik/tstcmd but same result

=======================================

JavaFan

I have already given how I am running the script.

The OS is OS/400 V5R3.

Just like to add I have written some programs on AS/400 in the past and executed from shell similarly. I have checked my script in

VSlick Edit and by displaying sepcial chars. It seems the newlines are coming as expected. At least similar to my other existing programs.

Regards

Sudip

Replies are listed 'Best First'.
Re^2: Execution error
by almut (Canon) on Apr 11, 2009 at 04:25 UTC
      'perl -v' output as follows:

      This is perl, version 5.005_02 built for os400

      Copyright 1987-1998, Larry Wall Rebuilt for iSeries on 22nd Dec 2004 - v1.1

      Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit.

      Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page.