Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.util
Class QSYSUtil

java.lang.Object
  extended by com.ibm.etools.iseries.rse.util.QSYSUtil

public class QSYSUtil
extends Object

QSYSUtil: Common Utility methods for this plugin


Field Summary
static String Copyright
           
 
Constructor Summary
QSYSUtil()
           
 
Method Summary
static int getCCSID(IBMiConnection connection)
          (Adapted from ISeriesEditorUtilities.getCCSID; which can't be accessed from this plugin.) Method getCCSID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

QSYSUtil

public QSYSUtil()
Method Detail

getCCSID

public static int getCCSID(IBMiConnection connection)
(Adapted from ISeriesEditorUtilities.getCCSID; which can't be accessed from this plugin.) Method getCCSID. Retrieves the CCSID for a parser. Called by the parsers AND the verifiers! CCSID is retrieved in the following manner:

the iFile properties are retrieved and the CCSID stored within is checked

1) if the CCSID is not 0, and not 65535, then that is the CCSID used 2) If the CCSID is 0 or 65535, then

a) if the user is connected, then the active job CCSID is used. b) if the user is disconnected, the cache is first checked for CCSID, if found then that CCSID is used

c) if the user is disconnected and if the cache doesn't contain a CCSID (the user never signed on), then the session property is used

d) if the user is disconnected and if the session property doesn't exist then the user is prompted to signon (unless working offline). If signon successful, then the job CCSID is used. The Session property is set to this CCSID.

e) If the signon failed (user pressed cancel) then the CCSID defaults to 37, and the session CCSID is set to 37.

SE25654: Extended this method to support a null value for (iFile) parameter: For calling from ISeriesLibTableView, to let it get the CCSID for the job, even though it is not an editor application.

Parameters:
parser - the parser that the source is open in
Returns:
int the CCSID that the parser should use.

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.