Uses of Class
com.microfocus.cobol.lang.ParameterList

Packages that use ParameterList
com.microfocus.cobol   
com.microfocus.cobol.lang   
 

Uses of ParameterList in com.microfocus.cobol
 

Methods in com.microfocus.cobol with parameters of type ParameterList
 int CobolBean.cobcall(String program, ParameterList parameters)
          Calls a COBOL program with a ParameterList and returns return-code as a int.
 int CobolBean.cobrcall(String program, ParameterList parameters)
          Calls a COBOL program with a set of parameters which returns the return-code as a int

NB: This method allows the user to call unchanged COBOL programs.
static int RuntimeSystem.cobcall(String program, ParameterList parameters)
          Calls a COBOL program with a specified ParameterList
static void RuntimeSystem.cobcall(Object retCode, String program, ParameterList parameters)
          Calls a COBOL program with a specified ParameterList and updates a return-code object.
static void RuntimeSystem.cobrcall(Object retCode, String program, ParameterList parameters)
          Calls a COBOL program with a set of parameters, then updates the retCode object with return-code

NB: This method allows the user to call legacy COBOL programs without requiring changes

static void RuntimeSystem.cobrcall(Object retCode, String program, ParameterList parameters, int srvCtl)
          Calls a COBOL program with a set of parameters and server control flags, then updates the retCode object with return-code

NB: This method allows the user to call legacy COBOL programs without requiring changes

static void RuntimeSystem.cobcall(Object retCode, String program, ParameterList parameters, int srvCtl)
          Calls a COBOL program with a set of parameters and server control flags, then updates the retCode object with return-code programs without requiring changes

 

Uses of ParameterList in com.microfocus.cobol.lang
 

Methods in com.microfocus.cobol.lang that return ParameterList
 ParameterList ParameterList.add(Object argument)
          Adds a BY_REFERENCE parameter to the ParameterList
 ParameterList ParameterList.add(Object argument, int usage)
          Adds a parameter with a specific usage to the ParameterList.
 ParameterList ParameterList.add(int aint)
          Add a int to the ParameterList
RuntimeSystem.cobcall("add2nums", new ParameterList()
.add(10) .add(32) );
 ParameterList ParameterList.add(int aint, int usage)
          Add a int to the ParameterList with a specific usage
RuntimeSystem.cobcall("add2nums", new ParameterList()
.add(10, RuntimeSystem.BY_VALUE) .add(32, RuntimeSystem.BY_VALUE) );
 ParameterList ParameterList.add(long along)
          Add a long to the ParameterList
RuntimeSystem.cobcall("add2nums", new ParameterList()
.add((long)10) .add((long)32) );
 ParameterList ParameterList.add(long along, int usage)
          Add a long to the ParameterList with a specific usage
RuntimeSystem.cobcall("add2nums", new ParameterList()
.add((long)10, RuntimeSystem.BY_VALUE) .add((long)32, RuntimeSystem.BY_VALUE) );
 ParameterList ParameterList.add(short ashort)
          Add a short to the ParameterList
RuntimeSystem.cobcall("add2nums", new ParameterList()
.add((short)10) .add((short)32) );
 ParameterList ParameterList.add(short ashort, int usage)
          Add a short to the ParameterList with a specific usage
RuntimeSystem.cobcall("add2nums", new ParameterList()
.add((short)10, RuntimeSystem.BY_VALUE) .add((short)32, RuntimeSystem.BY_VALUE) );
 ParameterList ParameterList.add(byte abyte)
          Add a byte to the ParameterList
RuntimeSystem.cobcall("add2nums", new ParameterList()
.add((byte)10) .add((byte)32) );
 ParameterList ParameterList.add(byte abyte, int usage)
          Add a byte to the ParameterList with a specific usage
RuntimeSystem.cobcall("add2nums", new ParameterList()
.add((byte)10, RuntimeSystem.BY_VALUE) .add((byte)32, RuntimeSystem.BY_VALUE) );
 ParameterList ParameterList.add(char achar)
          Add a char to the ParameterList
RuntimeSystem.cobcall("showchars", new ParameterList()
.add((char)'C') .add((char)'D') );
 ParameterList ParameterList.add(char achar, int usage)
          Add a char to the ParameterList with a specific usage
RuntimeSystem.cobcall("showchars", new ParameterList()
.add((char)'A', RuntimeSystem.BY_VALUE) .add((char)'B', RuntimeSystem.BY_VALUE) );
 ParameterList ParameterList.add(boolean aboolean)
          Add a boolean to the ParameterList
RuntimeSystem.cobcall("showbools", new ParameterList()
.add((boolean)false) .add((boolean)true) );
 ParameterList ParameterList.add(boolean aboolean, int usage)
          Add a boolean to the ParameterList with a specific usage
RuntimeSystem.cobcall("showbools", new ParameterList()
.add((boolean)true, RuntimeSystem.BY_VALUE) .add((boolean)false, RuntimeSystem.BY_VALUE) );
 ParameterList ParameterList.add(float afloat)
          Add a float to the ParameterList
RuntimeSystem.cobcall("addfloat", new ParameterList()
.add((float)false) .add((float)true) );
 ParameterList ParameterList.add(float afloat, int usage)
          Add a float to the ParameterList with a specific usage
RuntimeSystem.cobcall("addfloat", new ParameterList()
.add((float)true, RuntimeSystem.BY_VALUE) .add((float)false, RuntimeSystem.BY_VALUE) );
 ParameterList ParameterList.add(double adouble)
          Add a double to the ParameterList
RuntimeSystem.cobcall("adddouble", new ParameterList()
.add((double)false) .add((double)true) );
 ParameterList ParameterList.add(double adouble, int usage)
          Add a double to the ParameterList with a specific usage
RuntimeSystem.cobcall("adddouble", new ParameterList()
.add((double)true, RuntimeSystem.BY_VALUE) .add((double)false, RuntimeSystem.BY_VALUE) );
 




Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.