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


In reply to Re: Execution error by raju_400
in thread Execution error by raju_400

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.