Can this piece of Java code be NetRexxed?

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

Can this piece of Java code be NetRexxed?

Michael Dag

 

Is it possible to do Enumeration in NetRexx? I think I read somewhere it doesn’t work,

So before going on an impossible journey... I would like to ask for some help.

 

This a java sample to send PCF (Programmable Command Facility) commands to a WebSphere MQ

Queuemanager to extract configuration information. I am able to send and receive messages

But struggling with the PCF structure the part in green or marked with | if you don’t see

The color difference.

 

[Code]

import java.util.Enumeration;

import com.ibm.mq.MQQueueManager;

import com.ibm.mq.constants.MQConstants;

import com.ibm.mq.pcf.PCFMessage;

import com.ibm.mq.pcf.PCFMessageAgent;

import com.ibm.mq.pcf.PCFParameter;

 

public class Q2XML {

 

    public static void main(String[] args) {

 

        try {

            MQQueueManager qm = new MQQueueManager("");

            PCFMessageAgent agent = new PCFMessageAgent(qm);

            PCFMessage cmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);

            cmd.addParameter(MQConstants.MQCA_Q_NAME,

                    "SYSTEM.DEFAULT.LOCAL.QUEUE");

            PCFMessage[] responses = agent.send(cmd);

            Enumeration e = responses[0].getParameters();                                      |

            while (e.hasMoreElements()) {                                                      |

                PCFParameter parm = (PCFParameter) e.nextElement();                            |

                String name = parm.getParameterName().trim();                                  |

                String value = parm.getStringValue().trim();                                   |

                System.out.println("<" + name + ">" + value + "</" + name + ">");

            }

        } catch (Exception e) {

            System.err.println(e);

        }

    }

}

[/Code]

 

 

Michael


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

rvjansen
<base href="x-msg://1727/">Hi Michael,

this should work in the usual way. Let me know if you get stuck. I remember using enumerations a lot.

best regards,

René.

On 30 jul. 2011, at 10:22, Michael Dag wrote:

 
Is it possible to do Enumeration in NetRexx? I think I read somewhere it doesn’t work,
So before going on an impossible journey... I would like to ask for some help.
 
This a java sample to send PCF (Programmable Command Facility) commands to a WebSphere MQ
Queuemanager to extract configuration information. I am able to send and receive messages
But struggling with the PCF structure the part in green or marked with | if you don’t see
The color difference.
 
[Code]
import java.util.Enumeration;
import com.ibm.mq.MQQueueManager;
import com.ibm.mq.constants.MQConstants;
import com.ibm.mq.pcf.PCFMessage;
import com.ibm.mq.pcf.PCFMessageAgent;
import com.ibm.mq.pcf.PCFParameter;
 
public class Q2XML {
 
    public static void main(String[] args) {
 
        try {
            MQQueueManager qm = new MQQueueManager("");
            PCFMessageAgent agent = new PCFMessageAgent(qm);
            PCFMessage cmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);
            cmd.addParameter(MQConstants.MQCA_Q_NAME,
                    "SYSTEM.DEFAULT.LOCAL.QUEUE");
            PCFMessage[] responses = agent.send(cmd);
            Enumeration e = responses[0].getParameters();                                      |
            while (e.hasMoreElements()) {                                                      |
                PCFParameter parm = (PCFParameter) e.nextElement();                            |
                String name = parm.getParameterName().trim();                                  |
                String value = parm.getStringValue().trim();                                   |
                System.out.println("<" + name + ">" + value + "</" + name + ">");
            }
        } catch (Exception e) {
            System.err.println(e);
        }
    }
}
[/Code]
 
 
Michael
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

RE: Can this piece of Java code be NetRexxed?

Michael Dag
<base href="x-msg://1727/">

Rene,

I tried to het this to work, but seem to missing some insight… your remark about this should work in the usual way… intrigues…

What is the usual way of translating java to netrexx? I think I have tried before with reading xml files using sax I believe and stumbled as well…

 

So yes… if you don’t mind I could use some help…

 

Michael

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of René Jansen
Sent: Saturday, July 30, 2011 14:03
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?

 

Hi Michael,

 

this should work in the usual way. Let me know if you get stuck. I remember using enumerations a lot.

 

best regards,

 

René.

 

On 30 jul. 2011, at 10:22, Michael Dag wrote:



 

Is it possible to do Enumeration in NetRexx? I think I read somewhere it doesn’t work,

So before going on an impossible journey... I would like to ask for some help.

 

This a java sample to send PCF (Programmable Command Facility) commands to a WebSphere MQ

Queuemanager to extract configuration information. I am able to send and receive messages

But struggling with the PCF structure the part in green or marked with | if you don’t see

The color difference.

 

[Code]

import java.util.Enumeration;

import com.ibm.mq.MQQueueManager;

import com.ibm.mq.constants.MQConstants;

import com.ibm.mq.pcf.PCFMessage;

import com.ibm.mq.pcf.PCFMessageAgent;

import com.ibm.mq.pcf.PCFParameter;

 

public class Q2XML {

 

    public static void main(String[] args) {

 

        try {

            MQQueueManager qm = new MQQueueManager("");

            PCFMessageAgent agent = new PCFMessageAgent(qm);

            PCFMessage cmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);

            cmd.addParameter(MQConstants.MQCA_Q_NAME,

                    "SYSTEM.DEFAULT.LOCAL.QUEUE");

            PCFMessage[] responses = agent.send(cmd);

            Enumeration e = responses[0].getParameters();                                      |

            while (e.hasMoreElements()) {                                                      |

                PCFParameter parm = (PCFParameter) e.nextElement();                            |

                String name = parm.getParameterName().trim();                                  |

                String value = parm.getStringValue().trim();                                   |

                System.out.println("<" + name + ">" + value + "</" + name + ">");

            }

        } catch (Exception e) {

            System.err.println(e);

        }

    }

}

[/Code]

 

 

Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

rvjansen
<base href="x-msg://1727/">
Michael,

I meant like the usual way of

- optionally stripping off semicolons
- deleting the superfluous declarations
- stripping parentheses from typecasts
- changing curly braces '{' and '}' to 'do' and 'end'

… I feel a task for Thomas developing here … ;-)

out should come something like

e = responses[0].getParameters()
loop while (e.hasMoreElements())
  do
    parm = PCFParameter e.nextElement()
    name = parm.getParameterName().strip()
    value = parm.getStringValue().strip()     
  end

Let me know if that does not work - I did not run this.

best regards,

René.

On 30 jul. 2011, at 16:10, Michael Dag wrote:

Rene,
I tried to het this to work, but seem to missing some insight… your remark about this should work in the usual way… intrigues…
What is the usual way of translating java to netrexx? I think I have tried before with reading xml files using sax I believe and stumbled as well…
 
So yes… if you don’t mind I could use some help…
 
Michael
 
From: [hidden email] [mailto:[hidden email]] On Behalf Of René Jansen
Sent: Saturday, July 30, 2011 14:03
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?
 
Hi Michael,
 
this should work in the usual way. Let me know if you get stuck. I remember using enumerations a lot.
 
best regards,
 
René.
 
On 30 jul. 2011, at 10:22, Michael Dag wrote:


 
Is it possible to do Enumeration in NetRexx? I think I read somewhere it doesn’t work,
So before going on an impossible journey... I would like to ask for some help.
 
This a java sample to send PCF (Programmable Command Facility) commands to a WebSphere MQ
Queuemanager to extract configuration information. I am able to send and receive messages
But struggling with the PCF structure the part in green or marked with | if you don’t see
The color difference.
 
[Code]
import java.util.Enumeration;
import com.ibm.mq.MQQueueManager;
import com.ibm.mq.constants.MQConstants;
import com.ibm.mq.pcf.PCFMessage;
import com.ibm.mq.pcf.PCFMessageAgent;
import com.ibm.mq.pcf.PCFParameter;
 
public class Q2XML {
 
    public static void main(String[] args) {
 
        try {
            MQQueueManager qm = new MQQueueManager("");
            PCFMessageAgent agent = new PCFMessageAgent(qm);
            PCFMessage cmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);
            cmd.addParameter(MQConstants.MQCA_Q_NAME,
                    "SYSTEM.DEFAULT.LOCAL.QUEUE");
            PCFMessage[] responses = agent.send(cmd);
            Enumeration e = responses[0].getParameters();                                      |
            while (e.hasMoreElements()) {                                                      |
                PCFParameter parm = (PCFParameter) e.nextElement();                            |
                String name = parm.getParameterName().trim();                                  |
                String value = parm.getStringValue().trim();                                   |
                System.out.println("<" + name + ">" + value + "</" + name + ">");
            }
        } catch (Exception e) {
            System.err.println(e);
        }
    }
}
[/Code]
 
 
Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

RE: Can this piece of Java code be NetRexxed?

Michael Dag
<base href="x-msg://1727/">

Thanks!

Understand what I did wrong, took out both PCFParameter from PCFParameter parm = (PCFParameter) e.nextElement();

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of René Jansen
Sent: Saturday, July 30, 2011 17:12
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?

 

Michael,

 

I meant like the usual way of

 

- optionally stripping off semicolons

- deleting the superfluous declarations

- stripping parentheses from typecasts

- changing curly braces '{' and '}' to 'do' and 'end'

 

… I feel a task for Thomas developing here … ;-)

 

out should come something like

 

e = responses[0].getParameters()

loop while (e.hasMoreElements())

  do

    parm = PCFParameter e.nextElement()

    name = parm.getParameterName().strip()

    value = parm.getStringValue().strip()     

  end

 

Let me know if that does not work - I did not run this.

 

best regards,

 

René.

 

On 30 jul. 2011, at 16:10, Michael Dag wrote:



Rene,

I tried to het this to work, but seem to missing some insight… your remark about this should work in the usual way… intrigues…

What is the usual way of translating java to netrexx? I think I have tried before with reading xml files using sax I believe and stumbled as well…

 

So yes… if you don’t mind I could use some help…

 

Michael

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of René Jansen
Sent: Saturday, July 30, 2011 14:03
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?

 

Hi Michael,

 

this should work in the usual way. Let me know if you get stuck. I remember using enumerations a lot.

 

best regards,

 

René.

 

On 30 jul. 2011, at 10:22, Michael Dag wrote:




 

Is it possible to do Enumeration in NetRexx? I think I read somewhere it doesn’t work,

So before going on an impossible journey... I would like to ask for some help.

 

This a java sample to send PCF (Programmable Command Facility) commands to a WebSphere MQ

Queuemanager to extract configuration information. I am able to send and receive messages

But struggling with the PCF structure the part in green or marked with | if you don’t see

The color difference.

 

[Code]

import java.util.Enumeration;

import com.ibm.mq.MQQueueManager;

import com.ibm.mq.constants.MQConstants;

import com.ibm.mq.pcf.PCFMessage;

import com.ibm.mq.pcf.PCFMessageAgent;

import com.ibm.mq.pcf.PCFParameter;

 

public class Q2XML {

 

    public static void main(String[] args) {

 

        try {

            MQQueueManager qm = new MQQueueManager("");

            PCFMessageAgent agent = new PCFMessageAgent(qm);

            PCFMessage cmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);

            cmd.addParameter(MQConstants.MQCA_Q_NAME,

                    "SYSTEM.DEFAULT.LOCAL.QUEUE");

            PCFMessage[] responses = agent.send(cmd);

            Enumeration e = responses[0].getParameters();                                      |

            while (e.hasMoreElements()) {                                                      |

                PCFParameter parm = (PCFParameter) e.nextElement();                            |

                String name = parm.getParameterName().trim();                                  |

                String value = parm.getStringValue().trim();                                   |

                System.out.println("<" + name + ">" + value + "</" + name + ">");

            }

        } catch (Exception e) {

            System.err.println(e);

        }

    }

}

[/Code]

 

 

Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

ThSITC
In reply to this post by rvjansen
Hello Rene, Michael,

    to answer your quote below: Yes, there would be times to implement Java TO NetRexx translation
sometimes in the future. There is alreay lot of Java Parsing in my Parser, but still a big *Baustelle*,
as we say in German.

   I'm currently busy getting Rexx2Nrx vs 7.00 out, and PP release 15 (major current task is: Finishing PL/I
TO NetRexx Porting)... :-)

Hence for the time beeing, I cannot help.

But thanks for the detailed mini-spec below :-)

Have a nice weekend, by the way...

Thomas.
======================================================================================
Am 30.07.2011 17:12, schrieb René Jansen:
<base href="x-msg://1727/">
Michael,

I meant like the usual way of

- optionally stripping off semicolons
- deleting the superfluous declarations
- stripping parentheses from typecasts
- changing curly braces '{' and '}' to 'do' and 'end'

… I feel a task for Thomas developing here … ;-)

out should come something like

e = responses[0].getParameters()
loop while (e.hasMoreElements())
  do
    parm = PCFParameter e.nextElement()
    name = parm.getParameterName().strip()
    value = parm.getStringValue().strip()     
  end

Let me know if that does not work - I did not run this.

best regards,

René.

On 30 jul. 2011, at 16:10, Michael Dag wrote:

Rene,
I tried to het this to work, but seem to missing some insight… your remark about this should work in the usual way… intrigues…
What is the usual way of translating java to netrexx? I think I have tried before with reading xml files using sax I believe and stumbled as well…
 
So yes… if you don’t mind I could use some help…
 
Michael
 
From: [hidden email] [[hidden email]] On Behalf Of René Jansen
Sent: Saturday, July 30, 2011 14:03
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?
 
Hi Michael,
 
this should work in the usual way. Let me know if you get stuck. I remember using enumerations a lot.
 
best regards,
 
René.
 
On 30 jul. 2011, at 10:22, Michael Dag wrote:


 
Is it possible to do Enumeration in NetRexx? I think I read somewhere it doesn’t work,
So before going on an impossible journey... I would like to ask for some help.
 
This a java sample to send PCF (Programmable Command Facility) commands to a WebSphere MQ
Queuemanager to extract configuration information. I am able to send and receive messages
But struggling with the PCF structure the part in green or marked with | if you don’t see
The color difference.
 
[Code]
import java.util.Enumeration;
import com.ibm.mq.MQQueueManager;
import com.ibm.mq.constants.MQConstants;
import com.ibm.mq.pcf.PCFMessage;
import com.ibm.mq.pcf.PCFMessageAgent;
import com.ibm.mq.pcf.PCFParameter;
 
public class Q2XML {
 
    public static void main(String[] args) {
 
        try {
            MQQueueManager qm = new MQQueueManager("");
            PCFMessageAgent agent = new PCFMessageAgent(qm);
            PCFMessage cmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);
            cmd.addParameter(MQConstants.MQCA_Q_NAME,
                    "SYSTEM.DEFAULT.LOCAL.QUEUE");
            PCFMessage[] responses = agent.send(cmd);
            Enumeration e = responses[0].getParameters();                                      |
            while (e.hasMoreElements()) {                                                      |
                PCFParameter parm = (PCFParameter) e.nextElement();                            |
                String name = parm.getParameterName().trim();                                  |
                String value = parm.getStringValue().trim();                                   |
                System.out.println("<" + name + ">" + value + "</" + name + ">");
            }
        } catch (Exception e) {
            System.err.println(e);
        }
    }
}
[/Code]
 
 
Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/


--
Thomas Schneider (www.thsitc.com)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Kermit Kiser
In reply to this post by rvjansen
If I understood your implication right, I heartily agree. I have no use for translating Rexx, Cobol, PL1, Fortran, etc to NetRexx. But a translator from Java to NetRexx would be immensely valuable to me! I could use that almost daily. It seems like I always miss something when doing it manually and I don't like having to do it just to see if some example might be useful in NetRexx.

My bookmarks tell me that something like that once existed here:

NetRexxify JAVA to NetRexx Converter  http://cullenprogramming.homelinux.com:8192/RXFYdoc.htm

But there is no trace of it there now and I have no idea if it was open source. Is it another lost NetRexx utility?

-- KK

On 7/30/2011 8:12 AM, René Jansen wrote:
<base href="x-msg://1727/">
Michael,

I meant like the usual way of

- optionally stripping off semicolons
- deleting the superfluous declarations
- stripping parentheses from typecasts
- changing curly braces '{' and '}' to 'do' and 'end'

… I feel a task for Thomas developing here … ;-)

out should come something like

e = responses[0].getParameters()
loop while (e.hasMoreElements())
  do
    parm = PCFParameter e.nextElement()
    name = parm.getParameterName().strip()
    value = parm.getStringValue().strip()     
  end

Let me know if that does not work - I did not run this.

best regards,

René.

On 30 jul. 2011, at 16:10, Michael Dag wrote:

Rene,
I tried to het this to work, but seem to missing some insight… your remark about this should work in the usual way… intrigues…
What is the usual way of translating java to netrexx? I think I have tried before with reading xml files using sax I believe and stumbled as well…
 
So yes… if you don’t mind I could use some help…
 
Michael
 
From: [hidden email] [[hidden email]] On Behalf Of René Jansen
Sent: Saturday, July 30, 2011 14:03
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?
 
Hi Michael,
 
this should work in the usual way. Let me know if you get stuck. I remember using enumerations a lot.
 
best regards,
 
René.
 
On 30 jul. 2011, at 10:22, Michael Dag wrote:


 
Is it possible to do Enumeration in NetRexx? I think I read somewhere it doesn’t work,
So before going on an impossible journey... I would like to ask for some help.
 
This a java sample to send PCF (Programmable Command Facility) commands to a WebSphere MQ
Queuemanager to extract configuration information. I am able to send and receive messages
But struggling with the PCF structure the part in green or marked with | if you don’t see
The color difference.
 
[Code]
import java.util.Enumeration;
import com.ibm.mq.MQQueueManager;
import com.ibm.mq.constants.MQConstants;
import com.ibm.mq.pcf.PCFMessage;
import com.ibm.mq.pcf.PCFMessageAgent;
import com.ibm.mq.pcf.PCFParameter;
 
public class Q2XML {
 
    public static void main(String[] args) {
 
        try {
            MQQueueManager qm = new MQQueueManager("");
            PCFMessageAgent agent = new PCFMessageAgent(qm);
            PCFMessage cmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);
            cmd.addParameter(MQConstants.MQCA_Q_NAME,
                    "SYSTEM.DEFAULT.LOCAL.QUEUE");
            PCFMessage[] responses = agent.send(cmd);
            Enumeration e = responses[0].getParameters();                                      |
            while (e.hasMoreElements()) {                                                      |
                PCFParameter parm = (PCFParameter) e.nextElement();                            |
                String name = parm.getParameterName().trim();                                  |
                String value = parm.getStringValue().trim();                                   |
                System.out.println("<" + name + ">" + value + "</" + name + ">");
            }
        } catch (Exception e) {
            System.err.println(e);
        }
    }
}
[/Code]
 
 
Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Fernando Cassia-2
On Sat, Jul 30, 2011 at 17:55, Kermit Kiser <[hidden email]> wrote:
> NetRexxify JAVA to NetRexx Converter
> http://cullenprogramming.homelinux.com:8192/RXFYdoc.htm
>
> But there is no trace of it there now and I have no idea if it was open
> source. Is it another lost NetRexx utility?

Thanks for the pointer Kermit.

The good news is that Cullen Programming seems to be alive and well..
and he´s on Twitter...

https://twitter.com/#!/CULLPROG

FC

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Fernando Cassia-2
In reply to this post by Kermit Kiser
On Sat, Jul 30, 2011 at 17:55, Kermit Kiser <[hidden email]> wrote:
> But there is no trace of it there now and I have no idea if it was open
> source. Is it another lost NetRexx utility?

It was freeware, AFAIK. And sadly I don´t have a copy. :-(

from: http://mysite.verizon.net/gjcullen/RXFYdoc3.htm
----
NetRexxify fullfils that need. It will currently convert approximately
90 percent of the JAVA source to NetRexx. That measurement is just a
guess based on observation. The last 10 percent has to be manually
manipulated, for now. The first 90 percent was the easy part to
develop the necessary mechanical algorithms, however remaining 10
percent may take longer to write and test before I have a reliable
machine ready for distribution.

However, NetRexxify, in its current state is quite a timesaver.

So please bear with me on the first release of NetRexxify. I will
publish the improvements and fixes as they are developed; as well as
document limitations as they present themselves, on this website.

This version is free of charge.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Please email any request for change for product enhancement; or
problems that you experience and would like to see corrected in the
product. And please enclose examples of the JAVA source and the
NetRexx source that you expect to see as output.
--

However it´s not at his ftp site anymore...
ftp://cullenprogramming.homelinux.com/pub/

oh, wait, there it is! ;)
ftp://cullenprogramming.homelinux.com/pub/netrexxify.tar.gz

ftp://cullenprogramming.homelinux.com/pub/netrexxify.zip

In case he changes his mind or the site ever goes down, I´ll place a
safe copy somewhere else.

FC

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

ThSITC
In reply to this post by Kermit Kiser
Hello Kermit, (and all) ...

I'm currently trying to get the proper licence scheme for PP (The Rogram Porting Machine (c) [hidden email]) ready for OPening this
piece of source-code of mine there at www.Kenai.com.

Still struggling around for the proper Licence (DUAL Licence).

It will be, most probably, an *own* ThSITC Licence.

I'm opening the source, but get 50 % of any sales (Dixit).

By the way, when I'm doing so, who will be volunteers to complete Java *to* NetRexx ???

Any contributor's in SPE?

Each and any CONTRIBUTOR will get a fair share of the NET Income of this whole project.

Go ahead and look at Project PP at www.Kenai.com.

I'm seeking for contributor's to finish this (nearly) never ending story.

I'm an old man ;-)
Thomas.
======================================================================================
Am 30.07.2011 22:55, schrieb Kermit Kiser:
If I understood your implication right, I heartily agree. I have no use for translating Rexx, Cobol, PL1, Fortran, etc to NetRexx. But a translator from Java to NetRexx would be immensely valuable to me! I could use that almost daily. It seems like I always miss something when doing it manually and I don't like having to do it just to see if some example might be useful in NetRexx.

My bookmarks tell me that something like that once existed here:

NetRexxify JAVA to NetRexx Converter  http://cullenprogramming.homelinux.com:8192/RXFYdoc.htm

But there is no trace of it there now and I have no idea if it was open source. Is it another lost NetRexx utility?

-- KK

On 7/30/2011 8:12 AM, René Jansen wrote:
<base href="x-msg://1727/">
Michael,

I meant like the usual way of

- optionally stripping off semicolons
- deleting the superfluous declarations
- stripping parentheses from typecasts
- changing curly braces '{' and '}' to 'do' and 'end'

… I feel a task for Thomas developing here … ;-)

out should come something like

e = responses[0].getParameters()
loop while (e.hasMoreElements())
  do
    parm = PCFParameter e.nextElement()
    name = parm.getParameterName().strip()
    value = parm.getStringValue().strip()     
  end

Let me know if that does not work - I did not run this.

best regards,

René.

On 30 jul. 2011, at 16:10, Michael Dag wrote:

Rene,
I tried to het this to work, but seem to missing some insight… your remark about this should work in the usual way… intrigues…
What is the usual way of translating java to netrexx? I think I have tried before with reading xml files using sax I believe and stumbled as well…
 
So yes… if you don’t mind I could use some help…
 
Michael
 
From: [hidden email] [[hidden email]] On Behalf Of René Jansen
Sent: Saturday, July 30, 2011 14:03
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?
 
Hi Michael,
 
this should work in the usual way. Let me know if you get stuck. I remember using enumerations a lot.
 
best regards,
 
René.
 
On 30 jul. 2011, at 10:22, Michael Dag wrote:


 
Is it possible to do Enumeration in NetRexx? I think I read somewhere it doesn’t work,
So before going on an impossible journey... I would like to ask for some help.
 
This a java sample to send PCF (Programmable Command Facility) commands to a WebSphere MQ
Queuemanager to extract configuration information. I am able to send and receive messages
But struggling with the PCF structure the part in green or marked with | if you don’t see
The color difference.
 
[Code]
import java.util.Enumeration;
import com.ibm.mq.MQQueueManager;
import com.ibm.mq.constants.MQConstants;
import com.ibm.mq.pcf.PCFMessage;
import com.ibm.mq.pcf.PCFMessageAgent;
import com.ibm.mq.pcf.PCFParameter;
 
public class Q2XML {
 
    public static void main(String[] args) {
 
        try {
            MQQueueManager qm = new MQQueueManager("");
            PCFMessageAgent agent = new PCFMessageAgent(qm);
            PCFMessage cmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);
            cmd.addParameter(MQConstants.MQCA_Q_NAME,
                    "SYSTEM.DEFAULT.LOCAL.QUEUE");
            PCFMessage[] responses = agent.send(cmd);
            Enumeration e = responses[0].getParameters();                                      |
            while (e.hasMoreElements()) {                                                      |
                PCFParameter parm = (PCFParameter) e.nextElement();                            |
                String name = parm.getParameterName().trim();                                  |
                String value = parm.getStringValue().trim();                                   |
                System.out.println("<" + name + ">" + value + "</" + name + ">");
            }
        } catch (Exception e) {
            System.err.println(e);
        }
    }
}
[/Code]
 
 
Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/


--
Thomas Schneider (www.thsitc.com)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Robert L Hamilton
In reply to this post by Fernando Cassia-2
This is intriguing -- what types of JAVA things will it not RexxIFY?

Bob Hamilton
Richardson Texas USA

On Sat, Jul 30, 2011 at 5:20 PM, Fernando Cassia <[hidden email]> wrote:
On Sat, Jul 30, 2011 at 17:55, Kermit Kiser <[hidden email]> wrote:
> NetRexxify JAVA to NetRexx Converter
> http://cullenprogramming.homelinux.com:8192/RXFYdoc.htm
>
> But there is no trace of it there now and I have no idea if it was open
> source. Is it another lost NetRexx utility?

Thanks for the pointer Kermit.

The good news is that Cullen Programming seems to be alive and well..
and he´s on Twitter...

https://twitter.com/#!/CULLPROG

FC

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Fernando Cassia-2
In reply to this post by Fernando Cassia-2
On Sat, Jul 30, 2011 at 19:49, Fernando Cassia <[hidden email]> wrote:
>
> oh, wait, there it is! ;)
> ftp://cullenprogramming.homelinux.com/pub/netrexxify.tar.gz
>
> ftp://cullenprogramming.homelinux.com/pub/netrexxify.zip

By the way, someone should tell Mr. Cullen that he forgot two folders
right there in the wide-open public ftp site (anonymous login) with
his family photos... I´m not sure he wants everyone in the world to
have access to that.

I was perusing what kind of other apps and code snippets he had there
and stumbled upon that.

FC

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Jerry McBride
In reply to this post by Kermit Kiser

Is this what you are looking for?


http://mysite.verizon.net/gjcullen/RXFYdoc2.htm


I has a down load link...




On 07/30/11 16:55, Kermit Kiser wrote:
If I understood your implication right, I heartily agree. I have no use for translating Rexx, Cobol, PL1, Fortran, etc to NetRexx. But a translator from Java to NetRexx would be immensely valuable to me! I could use that almost daily. It seems like I always miss something when doing it manually and I don't like having to do it just to see if some example might be useful in NetRexx.

My bookmarks tell me that something like that once existed here:

NetRexxify JAVA to NetRexx Converter  http://cullenprogramming.homelinux.com:8192/RXFYdoc.htm

But there is no trace of it there now and I have no idea if it was open source. Is it another lost NetRexx utility?

-- KK

On 7/30/2011 8:12 AM, René Jansen wrote:
<base href="x-msg://1727/">
Michael,

I meant like the usual way of

- optionally stripping off semicolons
- deleting the superfluous declarations
- stripping parentheses from typecasts
- changing curly braces '{' and '}' to 'do' and 'end'

… I feel a task for Thomas developing here … ;-)

out should come something like

e = responses[0].getParameters()
loop while (e.hasMoreElements())
  do
    parm = PCFParameter e.nextElement()
    name = parm.getParameterName().strip()
    value = parm.getStringValue().strip()     
  end

Let me know if that does not work - I did not run this.

best regards,

René.

On 30 jul. 2011, at 16:10, Michael Dag wrote:

Rene,
I tried to het this to work, but seem to missing some insight… your remark about this should work in the usual way… intrigues…
What is the usual way of translating java to netrexx? I think I have tried before with reading xml files using sax I believe and stumbled as well…
 
So yes… if you don’t mind I could use some help…
 
Michael
 
From: [hidden email] [[hidden email]] On Behalf Of René Jansen
Sent: Saturday, July 30, 2011 14:03
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?
 
Hi Michael,
 
this should work in the usual way. Let me know if you get stuck. I remember using enumerations a lot.
 
best regards,
 
René.
 
On 30 jul. 2011, at 10:22, Michael Dag wrote:


 
Is it possible to do Enumeration in NetRexx? I think I read somewhere it doesn’t work,
So before going on an impossible journey... I would like to ask for some help.
 
This a java sample to send PCF (Programmable Command Facility) commands to a WebSphere MQ
Queuemanager to extract configuration information. I am able to send and receive messages
But struggling with the PCF structure the part in green or marked with | if you don’t see
The color difference.
 
[Code]
import java.util.Enumeration;
import com.ibm.mq.MQQueueManager;
import com.ibm.mq.constants.MQConstants;
import com.ibm.mq.pcf.PCFMessage;
import com.ibm.mq.pcf.PCFMessageAgent;
import com.ibm.mq.pcf.PCFParameter;
 
public class Q2XML {
 
    public static void main(String[] args) {
 
        try {
            MQQueueManager qm = new MQQueueManager("");
            PCFMessageAgent agent = new PCFMessageAgent(qm);
            PCFMessage cmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);
            cmd.addParameter(MQConstants.MQCA_Q_NAME,
                    "SYSTEM.DEFAULT.LOCAL.QUEUE");
            PCFMessage[] responses = agent.send(cmd);
            Enumeration e = responses[0].getParameters();                                      |
            while (e.hasMoreElements()) {                                                      |
                PCFParameter parm = (PCFParameter) e.nextElement();                            |
                String name = parm.getParameterName().trim();                                  |
                String value = parm.getStringValue().trim();                                   |
                System.out.println("<" + name + ">" + value + "</" + name + ">");
            }
        } catch (Exception e) {
            System.err.println(e);
        }
    }
}
[/Code]
 
 
Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Michael (maillists) Dag
In reply to this post by rvjansen
<base href="x-msg://1727/">

Coming back to this old thread… I had something working but lost the code…

don’t know what happened but have been pulling my hair for a couple of weeks now… L

 

got this piece of other java code working:

 

            MQQueueManager qm = new MQQueueManager(qmgr);                                        

            PCFMessageAgent agent = new PCFMessageAgent(qm);                                    

            

            PCFMessage cmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q_NAMES);                      

            // Add the inquire rules.

            // Queue name = wildcard.

            cmd.addParameter(MQConstants.MQCA_Q_NAME, "*");

            // Queue type = ALL.

            cmd.addParameter(MQConstants.MQIA_Q_TYPE, MQConstants.MQQT_ALL);                                          

            

            PCFMessage[] responses = agent.send(cmd);                                           

            String[] names = (String[]) responses[0].getParameterValue(MQConstants.MQCACF_Q_NAMES);                                     

            int[] qtypes = (int[]) responses[0].getParameterValue(MQConstants.MQIACF_Q_TYPES);

            for (int index = 0; index < names.length; index++) {

              System.out.println(qtypes[index] + " " + names[index]);

            }

 

and want to Netrexx this…

 

            qm = MQQueueManager(qmgr)                                      

            agent = PCFMessageAgent(qm)                                    

            

            cmd = PCFMessage(MQConstants.MQCMD_INQUIRE_Q_NAMES)                      

            // Add the inquire rules.

            // Queue name = wildcard.

            cmd.addParameter(MQConstants.MQCA_Q_NAME, "*")

            // Queue type = ALL.

            cmd.addParameter(MQConstants.MQIA_Q_TYPE, MQConstants.MQQT_ALL)                                         

            

            responses = agent.send(cmd)                                           

            names = responses[0].getParameterValue(MQConstants.MQCACF_Q_NAMES)                                     

            qtypes = responses[0].getParameterValue(MQConstants.MQIACF_Q_TYPES)

            for (int index = 0; index < names.length; index++) {

              System.out.println(qtypes[index] + " " + names[index]);

            }

 

and get stuck from the red part names and qtypes from responses… I just don’t get it… that’s why I use NetRexx in the first place…

 

Kindly requesting some helping hand… Thanks!!!

 

Michael

 

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of René Jansen
Sent: zaterdag 30 juli 2011 17:12
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?

 

Michael,

 

I meant like the usual way of

 

- optionally stripping off semicolons

- deleting the superfluous declarations

- stripping parentheses from typecasts

- changing curly braces '{' and '}' to 'do' and 'end'

 

… I feel a task for Thomas developing here … ;-)

 

out should come something like

 

e = responses[0].getParameters()

loop while (e.hasMoreElements())

  do

    parm = PCFParameter e.nextElement()

    name = parm.getParameterName().strip()

    value = parm.getStringValue().strip()     

  end

 

Let me know if that does not work - I did not run this.

 

best regards,

 

René.

 

On 30 jul. 2011, at 16:10, Michael Dag wrote:



Rene,

I tried to het this to work, but seem to missing some insight… your remark about this should work in the usual way… intrigues…

What is the usual way of translating java to netrexx? I think I have tried before with reading xml files using sax I believe and stumbled as well…

 

So yes… if you don’t mind I could use some help…

 

Michael

 

From: [hidden email] [[hidden email]] On Behalf Of René Jansen
Sent: Saturday, July 30, 2011 14:03
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?

 

Hi Michael,

 

this should work in the usual way. Let me know if you get stuck. I remember using enumerations a lot.

 

best regards,

 

René.

 

On 30 jul. 2011, at 10:22, Michael Dag wrote:




 

Is it possible to do Enumeration in NetRexx? I think I read somewhere it doesn’t work,

So before going on an impossible journey... I would like to ask for some help.

 

This a java sample to send PCF (Programmable Command Facility) commands to a WebSphere MQ

Queuemanager to extract configuration information. I am able to send and receive messages

But struggling with the PCF structure the part in green or marked with | if you don’t see

The color difference.

 

[Code]

import java.util.Enumeration;

import com.ibm.mq.MQQueueManager;

import com.ibm.mq.constants.MQConstants;

import com.ibm.mq.pcf.PCFMessage;

import com.ibm.mq.pcf.PCFMessageAgent;

import com.ibm.mq.pcf.PCFParameter;

 

public class Q2XML {

 

    public static void main(String[] args) {

 

        try {

            MQQueueManager qm = new MQQueueManager("");

            PCFMessageAgent agent = new PCFMessageAgent(qm);

            PCFMessage cmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);

            cmd.addParameter(MQConstants.MQCA_Q_NAME,

                    "SYSTEM.DEFAULT.LOCAL.QUEUE");

            PCFMessage[] responses = agent.send(cmd);

            Enumeration e = responses[0].getParameters();                                      |

            while (e.hasMoreElements()) {                                                      |

                PCFParameter parm = (PCFParameter) e.nextElement();                            |

                String name = parm.getParameterName().trim();                                  |

                String value = parm.getStringValue().trim();                                   |

                System.out.println("<" + name + ">" + value + "</" + name + ">");

            }

        } catch (Exception e) {

            System.err.println(e);

        }

    }

}

[/Code]

 

 

Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Marc Remes-2
Wrap it in a class, and java2nrx (http://netrexx.org/tools.nsp) produces :

class mq public

     method main( args=String[] ) static
         qm = MQQueueManager
         qm = MQQueueManager(qmgr)
         agent = PCFMessageAgent
         agent = PCFMessageAgent(qm)
         cmd = PCFMessage
         cmd = PCFMessage(MQConstants.MQCMD_INQUIRE_Q_NAMES)
         cmd.addParameter(MQConstants.MQCA_Q_NAME, "*")
         cmd.addParameter(MQConstants.MQIA_Q_TYPE, MQConstants.MQQT_ALL)
         responses = PCFMessage[]
         responses = agent.send(cmd)
         names = String[]
         names = (String[]) responses[0].getParameterValue(MQConstants.MQCACF_Q_NAMES)
         qtypes = int[]
         qtypes = (int[]) responses[0].getParameterValue(MQConstants.MQIACF_Q_TYPES)
         index = int
         index = 0
         loop while index < names.length
             System.out.println(qtypes[index] || " " + names[index])

             index = index + 1
         end

Some superfluous lines, but I think the 'names = String[]' and 'qtypes = int[]' declarations are essential.
--

Marc

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Michael (maillists) Dag
Thanks Marc!
Trying the code you generate results in:

  85 +++          names = (String[])
responses[0].getParameterValue(MQConstants.MQCACF_Q_NAMES)
     +++                                ^^^^^^
     +++ Error: Result of this expression cannot be just a type; it must
have a value
  87 +++          qtypes = (int[])
responses[0].getParameterValue(MQConstants.MQIACF_Q_TYPES)
     +++                                ^^^
     +++ Error: Result of this expression cannot be just a type; it must
have a value

When I remove the    (String[]) and (int[])        I get:

  85 +++          names =
responses[0].getParameterValue(MQConstants.MQCACF_Q_NAMES)
     +++                                ^^^^^^^^^
     +++ Error: Cannot convert value of type 'java.lang.Object' for
assignment to variable of type 'java.lang.String[]'
  87 +++          qtypes =
responses[0].getParameterValue(MQConstants.MQIACF_Q_TYPES)
     +++                                ^^^^^^^^^
     +++ Error: Cannot convert value of type 'java.lang.Object' for
assignment to variable of type 'int[]'

I see this type of coding in a lot of Java programs and just don't know how
to properly handle it in NetRexx,
obvious choice would be to switch to Pure java... but prefer to stick with
NetRexx...

any other suggestions to get this working?

Michael

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Marc Remes
Sent: vrijdag 28 juni 2013 9:07
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?

Wrap it in a class, and java2nrx (http://netrexx.org/tools.nsp) produces :

class mq public

     method main( args=String[] ) static
         qm = MQQueueManager
         qm = MQQueueManager(qmgr)
         agent = PCFMessageAgent
         agent = PCFMessageAgent(qm)
         cmd = PCFMessage
         cmd = PCFMessage(MQConstants.MQCMD_INQUIRE_Q_NAMES)
         cmd.addParameter(MQConstants.MQCA_Q_NAME, "*")
         cmd.addParameter(MQConstants.MQIA_Q_TYPE, MQConstants.MQQT_ALL)
         responses = PCFMessage[]
         responses = agent.send(cmd)
         names = String[]
         names = (String[])
responses[0].getParameterValue(MQConstants.MQCACF_Q_NAMES)
         qtypes = int[]
         qtypes = (int[])
responses[0].getParameterValue(MQConstants.MQIACF_Q_TYPES)
         index = int
         index = 0
         loop while index < names.length
             System.out.println(qtypes[index] || " " + names[index])

             index = index + 1
         end

Some superfluous lines, but I think the 'names = String[]' and 'qtypes =
int[]' declarations are essential.
--

Marc

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Marc Remes-2
Do you import com.ibm.mq.constants?

--

Marc

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Michael (maillists) Dag
yes

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Marc Remes
Sent: vrijdag 28 juni 2013 11:55
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?

Do you import com.ibm.mq.constants?

--

Marc

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Can this piece of Java code be NetRexxed?

Michael (maillists) Dag
Got it working!!! Had to remove the () around the types!

--         names = String[]
            names = String[]
responses[0].getParameterValue(MQConstants.MQCACF_Q_NAMES)
--         qtypes = int[]
            qtypes = int[]
responses[0].getParameterValue(MQConstants.MQIACF_Q_TYPES)

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of
[hidden email]
Sent: vrijdag 28 juni 2013 12:17
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?

yes

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Marc Remes
Sent: vrijdag 28 juni 2013 11:55
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Can this piece of Java code be NetRexxed?

Do you import com.ibm.mq.constants?

--

Marc

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/