NetRexx 1.02

classic Classic list List threaded Threaded
28 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: List Netiquette (was Struggling newbe)

alansam


On 13 May 2010 11:04, Bruce Skelly <[hidden email]> wrote:
 
I've never seen top-posting or bottom posting covered as a rule in any netiquette list.

Point taken.  I Don't have a problem with "top-posting" in general, but if you don't top post you're more likely to trim.

 
 Trim, a must.  

This is my beef!  The thread in question was out of control.

 
Also when you change the subject, change the subject line.
 
Agreed.  I didn't change the subject in my last post as I went on to reply to the question so I was on topic.

Alan.

--
Needs more cow-bell!

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Alan

--
Needs more cowbell.
Reply | Threaded
Open this post in threaded view
|

RE: Struggling newbe

measel
In reply to this post by kenner

You should be able to compile there but I’ve not tried it.  I generally compile on my pc, pop the class in a jar file and send it over.

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, May 13, 2010 11:58 AM
To: IBM Netrexx
Subject: RE: [Ibm-netrexx] Struggling newbe

 


Thanks MM, I'd gladly take a look at any documentation you might have. Not sure if this shop has Websphere up and running. I know there are some web pages getting served, but I'm not clear yet on how they have that set up.

Can I compile netrexx .nrx files into .class files on omvs?? Do I need another package for that?


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Struggling newbe - corrections

measel
In reply to this post by measel

After further review…Well, I was about half right as usual.

 

1)      You could listen on a socket and provide http back to the requestor (browser)

a.       snippet below – amazing some of the junk I have lying around

b.      But, if you want to do anything fancy you really need a real webserver.

2)      The presentation from Rene is from a RexxLA meeting about work he did at ABN AMRO – quite impressive.

3)      The parse presentation is by Chip Davis and it’s not NetRexx specific but very helpful anyway.

 

/* part of a nrx program that listens for requests from browser or cmdline and does stuff */

 

os = Rexx System.getProperty('os.name');

say 'running on ' os

  if arg = '' then arg = 80                  -- default port

  serverS = ServerSocket(arg)                -- register at port: server socket

  say 'Server:' serverS

  loop forever

    serviceS = serverS.accept()              -- listen/accept client: service socket

    say serviceS '\n  connected at:' Date()

    prtW = PrintWriter(OutputStreamWriter(serviceS.getOutputStream()))

    sIS  = BufferedReader(InputStreamReader(serviceS.getInputStream()))

     cline = String(sIS.readLine())

      say cline

      parse cline syscmd cmdstr 'HTTP' .      /* is this from a browser or cmd interface */

      html = 1                                  /* default html */

        if syscmd = "syscmd" then                  

            do                                                                                               -- from cmd line

              parse cmdstr filename cmd nprop '=' nval  

              say 'cmd=>' filename cmd nprop nval

              html = 0

              end

            else do                                                                                                                     --from a browser

               parse  cmdstr '/?' filename '%20' cmd '%20' nprop '=' nval .

               filename = filename.strip()

               say 'http_req=>' filename 'cmd=' cmd 'propval=' nprop nval

            end                                                                                                                              -- either way we have filename, cmd, nprop & nval

                   

                    if filename = 'help'

                                then do

                                                prtW.printLn('<html>')

                                                prtW.printLn('<H1>Introscope configuration tool</H1>')

                                                prtW.printLn('<BODY>')

                                                prtW.printLn('<BOLD><DFN>Usage:</DFN>')

                                                prtW.printLn('//hostname:port filename [command] [property] [value]</BOLD><P>')

                                                prtW.printLn(' ')

                                                prtW.printLn('<DFN>Valid commands:</DFN> download, instrument, update, add<P>')

                                                prtW.printLn(' ')

                                                prtW.printLn('   <FONT COLOR=0000FF>outputfile</FONT> download [mammoth download key] [productfile]<P>')

                                                prtW.printLn('    your link from mammoth --> downloadkey=</FONT><FONT COLOR=00FF00>4474897291555056884</FONT>&productfile=<FONT COLOR=FF00FF>snmpadap/SNMPServices4.0windows.zip</FONT><P>')

                                                prtW.printLn('   <B>ex:</B> //appserver_host:9003/?output.zip download <FONT COLOR=00FF00>4474897291555056884</FONT><FONT COLOR=FF00FF>snmpadap/SNMPServices4.0windows.zip</FONT><P>')

                                                prtW.printLn('   ')

                                                prtW.printLn('  <FONT COLOR=0000FF>pbdfile instrument input_jar output_jar</FONT><P>')

                                                prtW.printLn('   ex: //appserver_host:9001/?custom.pbd instrument myApp.jar myApp.isc.jar<P>')

                                                prtW.printLn('   ')

                                                prtW.printLn('  <FONT COLOR=0000FF>properties_file</COLOR> update property value</FONT><P>')

                                                prtW.printLn('    ex: Autoprobe.properties update introscope.agent.leakhunter.enable=false<P>')

                                                prtW.printLn('</BODY>')

                                                prtW.close()   

                        sIS.close()                         -- close output and socket

                        serviceS.close()

                                                iterate

                                end

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Measel, Mike
Sent: Thursday, May 13, 2010 10:56 AM
To: IBM Netrexx
Subject: RE: [Ibm-netrexx] Struggling newbe

 

Kenneth, yes NetRexx runs under OMVS, but….in order to have a GUI you need Websphere or something similar.

 

If you’d like I can privately email you some good documents, like Rene’s presentation on Parse.

 

I also have an example Netrexx servlet in case you decide to go the Websphere route.

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Thursday, May 13, 2010 8:10 AM
To: IBM Netrexx
Subject: RE: [Ibm-netrexx] Struggling newbe

 


OK. I have it working now. I did have to declare the types of MyA and MyQ. Without that I got errors about it not being defined.

I have the "Creating java aps using Netrexx", the redbook from 9/97 and the NetRexxD documentation package with Mike's users guide from August 2000 and Language definition from 1997. Is there anything more current. There are a few other presentations out there but mostly pretty old. Does Netrexx run under OMVS? I see that Java works in this shop under OMVS (z/os 1.10). I'm looking for an example close to combining my LoadTab.nrx with a GUI interface that would prompt with the question and accept a button click on True or False.

Output:

Processing TandF.txt...
0
A). T Q). It is important to smell the aroma of a sample as soon as it is poured.
1
A). F Q). The head judge has the sole responsibility to fill out the slight summary sheets.
2
A). F Q). The competition organizer may not judge beers even if he has no knowledge of competitor's entries.
3
A). T Q). Wooden pencils and erasers should be avoided to prevent introducing off aromas in the judging area.
4

# processing ended
 T   It is important to smell the aroma of a sample as soon as it is poured.
 F   The head judge has the sole responsibility to fill out the slight summary sheets.
 F   The competition organizer may not judge beers even if he has no knowledge of competitor's entries.
 T   Wooden pencils and erasers should be avoided to prevent introducing off aromas in the judging area.

Source:

trace all
options binary
MyA = rexx[4]
MyQ = rexx[4]
        infile=File('TandF.txt')
        instream=FileInputStream(infile)
        inhandle=BufferedReader(InputStreamReader(instream))
        say 'Processing' infile'...'
        loop thisline = 0 by 1
          say thisline
          lineread = Rexx inhandle.readLine  -- get next line [as Rexx string]
          say lineread
          if lineread = null then leave thisline       -- normal end of file
          parse lineread 'A).' answer 'Q).' question -- process the line
          MyA[thisline] = answer
          MyQ[thisline] = question
        end thisline  
 
        say '# processing ended'

if inhandle \= null  then inhandle.close
 
loop i = 0 to 3
  say MyA[i] MyQ[i]
end i
exit


Kenneth Klein
Systems Specialist
502-868-3644
859-750-5179 (Cell)
502-868-2298 (Fax)
[hidden email]

"Mike Cowlishaw" <[hidden email]>
Sent by: [hidden email]

05/12/2010 04:10 PM

Please respond to
IBM Netrexx <[hidden email]>

To

"'IBM Netrexx'" <[hidden email]>

cc

Subject

RE: [Ibm-netrexx] Struggling newbe

 




Ah yes, I should have read my own book -- sorry.   Just a symbol allowed as a name of a variable in parse.   I think that was probably to keep parse clauses reasonably clean to look at  [but maybe a possible area of extension!].
 
So perhaps something like:
 
  parse line 'A).' answer 'Q).' question -- process the line
  myq[linenum]=question
  mya[linenum]=answer
 
etc ...
 
Mike
 
 


From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent:
12 May 2010 20:15
To:
IBM Netrexx
Subject:
RE: [Ibm-netrexx] Struggling newbe



Thanks, Mike. I was just happy it worked. Now I want to make it elegant as well as understand what going on.


Unfortunately trying to use the indexed variable is failing in the parse statement.



NetRexx portable processor, version 2.05

Copyright (c) IBM Corporation, 2005.  All rights reserved.

Program LoadTab.nrx

11 +++    parse line 'A).' MyA[linenum] 'Q).' MyQ[linenum] -- process the line

   +++                        ^

   +++ Error: Unexpected token in parsing template

19 +++   say MyA[i] MyQ[i]

   +++              ^^^

   +++ Error: Variable or type expected

 8 +++  loop linenum = 0 by 1

   +++       ^^^^^^^

   +++ Warning: Variable is set but not used

Compilation of 'LoadTab.nrx' failed [2 errors, one warning]


Kenneth Klein
Systems Specialist
502-868-3644
859-750-5179 (Cell)
502-868-2298 (Fax)
[hidden email]

"Mike Cowlishaw" <[hidden email]>
Sent by: [hidden email]

05/12/2010 02:52 PM

Please respond to
IBM Netrexx <[hidden email]>

 

To

"'IBM Netrexx'" <[hidden email]>

cc

Subject

RE: [Ibm-netrexx] Struggling newbe

 





Some of the tips are not so good.  For a target in a parse you can put anything that is allowed on the left of the '=' in an assignment, just as in classic Rexx,  so foobar[i] is fine.  And you do not need the declarations (e.g., MyA=Rexx[4]) at the top.  And you don't need to use ugly names like '$A' in any NetRexx program (in fact, NetRexx has to use $ in names to work with Java, so recommends you avoid that character in symbol names; it is only allowed because some Java classes require that you use names with $ in them).

 
Mike


From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent:
12 May 2010 18:43
To:
[hidden email]; IBM Netrexx
Subject:
Re: [Ibm-netrexx] Struggling newbe



Thanks, all. Very good tips. I have it working now. Next I want to work it into the Button.nrx sample and have the questions show up in the pop-ups title bar and show True and False for button options.



Processing TandF.txt...

# processing ended

# processing ended

# processing ended

# processing ended

T   It is important to smell the aroma of a sample as soon as it is poured.
F   The head judge has the sole responsibility to fill out the slight summary sheets.

F   The competition organizer may not judge beers even if he has no knowledge of competitor's entries.

T   Wooden pencils and erasers should be avoided to prevent introducing off aromas in the judging area.




trace all

options binary

      MyA=Rexx[4]

      MyQ=rexx[4]


      infile=File('TandF.txt')

      instream=FileInputStream(infile)

      inhandle=BufferedReader(InputStreamReader(instream))

      say 'Processing' infile'...'

      loop linenum = 0 by 1

        line = Rexx inhandle.readLine  -- get next line [as Rexx string]

        if line = null then leave linenum       -- normal end of file

        parse line 'A).' $A 'Q).' $Q -- process the line

        MyA[linenum] = $A

        MyQ[linenum] = $Q

        say '# processing ended'

      end linenum  


if inhandle \= null  then inhandle.close


loop i = 0 to 3

say MyA[i] MyQ[i]

end i

exit


Kenneth Klein
Systems Specialist
502-868-3644
859-750-5179 (Cell)
502-868-2298 (Fax)
[hidden email]

Thomas Schneider <[hidden email]>
Sent by: [hidden email]

05/12/2010 12:19 PM

Please respond to
[hidden email]; Please respond to
IBM Netrexx <[hidden email]>

 

To

IBM Netrexx <[hidden email]>

cc

Subject

Re: [Ibm-netrexx] Struggling newbe

 






Hi Kenneth,
as far as I do know the PARSE-statement does *NOT* support *subscriped variables as
the targets of the Parse (which classic rexx dooes).

The easieat way to overcome this restriction is to use temporary Variabloes in the parse statement and assign
them to the target subscripted variables immmediately following the parse.

In you case, I would suggest:

parse line 'A).' $a 'Q).' $q
MyA[linenum]=$a
MyQ[linenum]=$q

This should work.

By the way, the classic Rexx converter (www.Rexx2Nrx.com) and my Rey Compiler
do do this automatically for you.

hope this helps to solve your issue in question.

kind regards,
Thomas Schneider.
===============================================================================
Am 12.05.2010 15:49, schrieb [hidden email]

I know this is going to look like some idiot making a stab at coding in netrexx, and it indeed is.


trace all

options binary

MyA=String[4]

MyQ=String[4]

line = Rexx
line = 'This is the default value for this variable'

infile=File('TandF.txt')

instream=FileInputStream(infile)

inhandle=BufferedReader(InputStreamReader(instream))

say 'Processing' infile'...'

loop linenum = 0 by 1

line = Rexx inhandle.readLine           -- get next line [as Rexx string]

if line = null then leave linenum       -- normal end of file

parse line 'A).' MyA[linenum] 'Q).' MyQ[linenum]    -- process the line

say '# processing ended'

end linenum  

if inhandle \= null  then inhandle.close

loop i = 0 to 3

say MyA[i] MyQ[i]

end i

exit



NetRexx portable processor, version 2.05

Copyright (c) IBM Corporation, 2005.  All rights reserved.

Program LoadTab.nrx

14 +++   parse line 'A).' MyA[linenum] 'Q).' MyQ[linenum]    -- process the line

 +++         ^^^^

 +++ Error: Cannot convert value of type 'netrexx.lang.Rexx' for assignment to variable of type 'java.lang.String[]'

11 +++ loop linenum = 0 by 1

 +++      ^^^^^^^

 +++ Warning: Variable is set but not used

Compilation of 'LoadTab.nrx' failed [one error, one warning]


I've been thru lots of manuals but there seems to be a quantum leap from syntax and clause definitions to how this really works. Any help appreciated.

Kenneth Klein
Systems Specialist
502-868-3644
859-750-5179 (Cell)
502-868-2298 (Fax)

[hidden email]


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




--
Thomas Schneider Projects ReyC & LOGOS on www.KENAI.com_______________________________________________
Ibm-netrexx mailing list
[hidden email]


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

_______________________________________________
Ibm-netrexx mailing list
[hidden email]


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Struggling newbe

Thomas.Schneider.Wien
In reply to this post by kenner
Hi Kenneth,
   as already said:

You *do have* to *compile* *NetRexx Files* only *once: at your *own machine*

Then, my advise would be to put all of your classes *into **ONE** JAR-File*

A *Jar* file is nearly similar to a ZIP file, but has some added features.

When you like I could send you the *BUILD.BAT* file I personally am using for
my own releases (as an example).

Kind regards from dark Vienna,
Thomas Schneider.

PS: On the target machines, you will only have to have your classpath to reference your application!!
PPS: There is *no recompilation necessary* *for EACH Target machine* !!!!!!!!!

--- and whoops: *Everything works* ....

Hope that helps.

When you have further questions, give me a private mail to: [hidden email], and I will try to assist.
Tom. :-)

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

Am 13.05.2010 18:57, schrieb [hidden email]

Thanks MM, I'd gladly take a look at any documentation you might have. Not sure if this shop has Websphere up and running. I know there are some web pages getting served, but I'm not clear yet on how they have that set up.

Can I compile netrexx .nrx files into .class files on omvs?? Do I need another package for that?


Kenneth Klein
Systems Specialist
502-868-3644
859-750-5179 (Cell)
502-868-2298 (Fax)
[hidden email]



"Measel, Mike" [hidden email]
Sent by: [hidden email]

05/13/2010 12:13 PM

Please respond to
IBM Netrexx [hidden email]

To
"IBM Netrexx" [hidden email]
cc

Subject
RE: [Ibm-netrexx] Struggling newbe







Kenneth, yes NetRexx runs under OMVS, but….in order to have a GUI you need Websphere or something similar.
 
If you’d like I can privately email you some good documents, like Rene’s presentation on Parse.
 
I also have an example Netrexx servlet in case you decide to go the Websphere route.
 
From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent:
Thursday, May 13, 2010 8:10 AM
To:
IBM Netrexx
Subject:
RE: [Ibm-netrexx] Struggling newbe

 

OK. I have it working now. I did have to declare the types of MyA and MyQ. Without that I got errors about it not being defined.


I have the "Creating java aps using Netrexx", the redbook from 9/97 and the NetRexxD documentation package with Mike's users guide from August 2000 and Language definition from 1997. Is there anything more current. There are a few other presentations out there but mostly pretty old. Does Netrexx run under OMVS? I see that Java works in this shop under OMVS (z/os 1.10). I'm looking for an example close to combining my LoadTab.nrx with a GUI interface that would prompt with the question and accept a button click on True or False.


Output:


Processing TandF.txt...

0

A). T Q). It is important to smell the aroma of a sample as soon as it is poured.
1

A). F Q). The head judge has the sole responsibility to fill out the slight summary sheets.

2

A). F Q). The competition organizer may not judge beers even if he has no knowledge of competitor's entries.

3

A). T Q). Wooden pencils and erasers should be avoided to prevent introducing off aromas in the judging area.

4


# processing ended

T   It is important to smell the aroma of a sample as soon as it is poured.
F   The head judge has the sole responsibility to fill out the slight summary sheets.

F   The competition organizer may not judge beers even if he has no knowledge of competitor's entries.

T   Wooden pencils and erasers should be avoided to prevent introducing off aromas in the judging area.


Source:


trace all

options binary

MyA = rexx[4]

MyQ = rexx[4]

       infile=File('TandF.txt')

       instream=FileInputStream(infile)

       inhandle=BufferedReader(InputStreamReader(instream))

       say 'Processing' infile'...'

       loop thisline = 0 by 1

         say thisline

         lineread = Rexx inhandle.readLine  -- get next line [as Rexx string]

         say lineread

         if lineread = null then leave thisline       -- normal end of file

         parse lineread 'A).' answer 'Q).' question -- process the line

         MyA[thisline] = answer
         MyQ[thisline] = question

       end thisline  

 
       say '# processing ended'


if inhandle \= null  then inhandle.close

 
loop i = 0 to 3

 say MyA[i] MyQ[i]

end i

exit



Kenneth Klein
Systems Specialist
502-868-3644
859-750-5179 (Cell)
502-868-2298 (Fax)
[hidden email]

"Mike Cowlishaw" [hidden email]
Sent by: [hidden email]

05/12/2010 04:10 PM


Please respond to
IBM Netrexx [hidden email]


To
"'IBM Netrexx'" [hidden email]
cc

Subject
RE: [Ibm-netrexx] Struggling newbe

 









Ah yes, I should have read my own book -- sorry.   Just a symbol allowed as a name of a variable in parse.   I think that was probably to keep parse clauses reasonably clean to look at  [but maybe a possible area of extension!].

 

So perhaps something like:

 

 parse line 'A).' answer 'Q).' question -- process the line

 myq[linenum]=question

 mya[linenum]=answer

 

etc ...

 

Mike

 
 




From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent:
12 May 2010 20:15
To:
IBM Netrexx
Subject:
RE: [Ibm-netrexx] Struggling newbe



Thanks, Mike. I was just happy it worked. Now I want to make it elegant as well as understand what going on.

Unfortunately trying to use the indexed variable is failing in the parse statement.



NetRexx portable processor, version 2.05

Copyright (c) IBM Corporation, 2005.  All rights reserved.

Program LoadTab.nrx

11 +++    parse line 'A).' MyA[linenum] 'Q).' MyQ[linenum] -- process the line

  +++                        ^

  +++ Error: Unexpected token in parsing template

19 +++   say MyA[i] MyQ[i]

  +++              ^^^

  +++ Error: Variable or type expected

8 +++  loop linenum = 0 by 1

  +++       ^^^^^^^

  +++ Warning: Variable is set but not used

Compilation of 'LoadTab.nrx' failed [2 errors, one warning]


Kenneth Klein
Systems Specialist
502-868-3644
859-750-5179 (Cell)
502-868-2298 (Fax)
[hidden email]

"Mike Cowlishaw" [hidden email]
Sent by: [hidden email]

05/12/2010 02:52 PM


Please respond to
IBM Netrexx [hidden email]

 


To
"'IBM Netrexx'" [hidden email]
cc

Subject
RE: [Ibm-netrexx] Struggling newbe

 










Some of the tips are not so good.  For a target in a parse you can put anything that is allowed on the left of the '=' in an assignment, just as in classic Rexx,  so foobar[i] is fine.  And you do not need the declarations (e.g., MyA=Rexx[4]) at the top.  And you don't need to use ugly names like '$A' in any NetRexx program (in fact, NetRexx has to use $ in names to work with Java, so recommends you avoid that character in symbol names; it is only allowed because some Java classes require that you use names with $ in them).


Mike




From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent:
12 May 2010 18:43
To:
[hidden email]; IBM Netrexx
Subject:
Re: [Ibm-netrexx] Struggling newbe



Thanks, all. Very good tips. I have it working now. Next I want to work it into the Button.nrx sample and have the questions show up in the pop-ups title bar and show True and False for button options.



Processing TandF.txt...

# processing ended

# processing ended

# processing ended

# processing ended

T   It is important to smell the aroma of a sample as soon as it is poured.
F   The head judge has the sole responsibility to fill out the slight summary sheets.

F   The competition organizer may not judge beers even if he has no knowledge of competitor's entries.

T   Wooden pencils and erasers should be avoided to prevent introducing off aromas in the judging area.




trace all

options binary

     MyA=Rexx[4]

     MyQ=rexx[4]


     infile=File('TandF.txt')

     instream=FileInputStream(infile)

     inhandle=BufferedReader(InputStreamReader(instream))

     say 'Processing' infile'...'

     loop linenum = 0 by 1

       line = Rexx inhandle.readLine  -- get next line [as Rexx string]

       if line = null then leave linenum       -- normal end of file

       parse line 'A).' $A 'Q).' $Q -- process the line

       MyA[linenum] = $A

       MyQ[linenum] = $Q

       say '# processing ended'

     end linenum  


if inhandle \= null  then inhandle.close


loop i = 0 to 3

say MyA[i] MyQ[i]

end i

exit


Kenneth Klein
Systems Specialist
502-868-3644
859-750-5179 (Cell)
502-868-2298 (Fax)
[hidden email]

Thomas Schneider [hidden email]
Sent by: [hidden email]

05/12/2010 12:19 PM


Please respond to
[hidden email]; Please respond to
IBM Netrexx [hidden email]

 


To
IBM Netrexx [hidden email]
cc

Subject
Re: [Ibm-netrexx] Struggling newbe












Hi Kenneth,
as far as I do know the PARSE-statement does *NOT* support *subscriped variables as
the targets of the Parse (which classic rexx dooes).

The easieat way to overcome this restriction is to use temporary Variabloes in the parse statement and assign
them to the target subscripted variables immmediately following the parse.

In you case, I would suggest:

parse line 'A).' $a 'Q).' $q
MyA[linenum]=$a
MyQ[linenum]=$q

This should work.

By the way, the classic Rexx converter (
www.Rexx2Nrx.com) and my Rey Compiler
do do this automatically for you.

hope this helps to solve your issue in question.

kind regards,
Thomas Schneider.
===============================================================================
Am 12.05.2010 15:49, schrieb
[hidden email]

I know this is going to look like some idiot making a stab at coding in netrexx, and it indeed is.


trace all

options binary

MyA=String[4]

MyQ=String[4]

line = Rexx
line = 'This is the default value for this variable'

infile=File('TandF.txt')

instream=FileInputStream(infile)

inhandle=BufferedReader(InputStreamReader(instream))

say 'Processing' infile'...'

loop linenum = 0 by 1

line = Rexx inhandle.readLine           -- get next line [as Rexx string]

if line = null then leave linenum       -- normal end of file

parse line 'A).' MyA[linenum] 'Q).' MyQ[linenum]    -- process the line

say '# processing ended'

end linenum  

if inhandle \= null  then inhandle.close

loop i = 0 to 3

say MyA[i] MyQ[i]

end i

exit



NetRexx portable processor, version 2.05

Copyright (c) IBM Corporation, 2005.  All rights reserved.

Program LoadTab.nrx

14 +++   parse line 'A).' MyA[linenum] 'Q).' MyQ[linenum]    -- process the line

+++         ^^^^

+++ Error: Cannot convert value of type 'netrexx.lang.Rexx' for assignment to variable of type 'java.lang.String[]'

11 +++ loop linenum = 0 by 1

+++      ^^^^^^^

+++ Warning: Variable is set but not used

Compilation of 'LoadTab.nrx' failed [one error, one warning]


I've been thru lots of manuals but there seems to be a quantum leap from syntax and clause definitions to how this really works. Any help appreciated.

Kenneth Klein
Systems Specialist
502-868-3644
859-750-5179 (Cell)
502-868-2298 (Fax)

[hidden email]


_______________________________________________
Ibm-netrexx mailing list

[hidden email]




--
Thomas Schneider Projects ReyC & LOGOS on
www.KENAI.com_______________________________________________
Ibm-netrexx mailing list
[hidden email]

_______________________________________________
Ibm-netrexx mailing list
[hidden email]


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
_______________________________________________
Ibm-netrexx mailing list
[hidden email]


_______________________________________________ Ibm-netrexx mailing list [hidden email]


--
Thomas Schneider Projects ReyC & LOGOS on www.KENAI.com

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Tom. (ths@db-123.com)
Reply | Threaded
Open this post in threaded view
|

Re: Struggling newbe

alansam
In reply to this post by measel


On 13 May 2010 11:31, Measel, Mike <[hidden email]> wrote:

You should be able to compile there but I’ve not tried it.  I generally compile on my pc, pop the class in a jar file and send it over.

Just to be sure I just tried again.  It still works on at least one of my z/OS systems (I agree though that it's easier to compile locally and just copy the JAR files):

~> uname -a
OS/390 XXXXXXXX 16.01 03 2094
~> nrc -run hello -keep
NetRexx portable processor, version 2.05
Copyright (c) IBM Corporation, 2005.  All rights reserved.
Program hello.nrx
Compilation of 'hello.nrx' successful
Running hello...
Hello World!
~> java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pmz31dev-20090707 (SR10 ))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 z/OS s390-31 j9vmmz3123-20090707 (JIT enabled)
J9VM - 20090706_38445_bHdSMr
JIT  - 20090623_1334_r8
GC   - 200906_09)
JCL  - 20090705

Alan.

--
Needs more cow-bell!

_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Alan

--
Needs more cowbell.
Reply | Threaded
Open this post in threaded view
|

Re: List Netiquette (was Struggling newbe)

kenner
In reply to this post by alansam

The mail I've been getting was < a couple dozen K, or so it appeared on this lotus notes system.

Kenneth Klein
Systems Specialist
502-868-3644
859-750-5179 (Cell)
502-868-2298 (Fax)
[hidden email]



Alan Sampson <[hidden email]>
Sent by: [hidden email]

05/13/2010 03:02 PM

Please respond to
IBM Netrexx <[hidden email]>

To
IBM Netrexx <[hidden email]>
cc
Subject
Re: [Ibm-netrexx] List Netiquette (was Struggling newbe)







On 13 May 2010 11:04, Bruce Skelly <bruce.skelly@...> wrote:
 
I've never seen top-posting or bottom posting covered as a rule in any netiquette list.

Point taken.  I Don't have a problem with "top-posting" in general, but if you don't top post you're more likely to trim.

 

 Trim, a must.  

This is my beef!  The thread in question was out of control.

 



_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Struggling newbe - Documentation

KP Kirchdörfer
In reply to this post by kenner
Am Donnerstag, 13. Mai 2010 18:57:41 schrieb [hidden email]:
> Thanks MM, I'd gladly take a look at any documentation you might have. Not
> sure if this shop has Websphere up and running. I know there are some web
> pages getting served, but I'm not clear yet on how they have that set up.


Around 1997 has been an excellent "Netrexx Tutorial" started and published on
the net by Pierantonio Marchesini (at that time working/studying at ETH
Zurich) which was updated regulary.
I've printed myself a copy of version v0r0133, but don't know, if it's ever
been finished, if it had updates later than v0r0133 and I don't know if it is
still somewhere around the net.

If someone even has an older/unfinished version, I'd say it's a gem for
newbies to NetRexx, introduction into OO programming and those who like to
move from Rexx to NetRexx, which shouldbe made available as-is again.

kp
_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Struggling newbe - Documentation

kenner

I'd love to see what you have. No luck for me on the net. The .cern site seems to have passwords and registration.

Kenneth Klein
Systems Specialist
502-868-3644
859-750-5179 (Cell)
502-868-2298 (Fax)
[hidden email]






Am Donnerstag, 13. Mai 2010 18:57:41 schrieb [hidden email]:
> Thanks MM, I'd gladly take a look at any documentation

Around 1997 has been an excellent "Netrexx Tutorial" started and published on
the net by Pierantonio Marchesini (at that time working/studying at ETH
Zurich) which was updated regulary.
I've printed myself a copy of version v0r0133, but don't know, if it's ever
been finished, if it had updates later than v0r0133 and I don't know if it is
still somewhere around the net.

If someone even has an older/unfinished version, I'd say it's a gem for
newbies to NetRexx, introduction into OO programming and those who like to
move from Rexx to NetRexx, which shouldbe made available as-is again.



_______________________________________________
Ibm-netrexx mailing list
[hidden email]

12