Skip to content

Commit db5c899

Browse files
committed
Standardize CCSID constant
1 parent 8a3a57f commit db5c899

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

projects/com.ibm.cicsdev.link/src/com/ibm/cicsdev/link/LinkProg1.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class LinkProg1 extends LinkProgCommon
3939
/**
4040
* CCSID of the CICS region.
4141
*/
42-
private static final String LOCALCCSID = System.getProperty("com.ibm.cics.jvmserver.local.ccsid");
42+
private static final String CCSID = System.getProperty("com.ibm.cics.jvmserver.local.ccsid");
4343

4444
/**
4545
* Constructor used to pass data to superclass constructor.
@@ -87,7 +87,7 @@ public static void main(String[] args)
8787
// Build output string from commarea assuming returned data encoded in CICS local EBCDIC ccsid
8888
String resultStr;
8989
try {
90-
resultStr = new String(ca,LOCALCCSID);
90+
resultStr = new String(ca,CCSID);
9191
} catch (UnsupportedEncodingException ue) {
9292
throw new RuntimeException(ue);
9393
}

projects/com.ibm.cicsdev.link/src/com/ibm/cicsdev/link/LinkServEC01.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class LinkServEC01
3636
/**
3737
* CCSID of the CICS region.
3838
*/
39-
private static final String LOCALCCSID = System.getProperty("com.ibm.cics.jvmserver.local.ccsid");
39+
private static final String CCSID = System.getProperty("com.ibm.cics.jvmserver.local.ccsid");
4040

4141
/**
4242
* Main entry point to a CICS OSGi program.
@@ -63,7 +63,7 @@ public static void main(CommAreaHolder cah) {
6363

6464
try {
6565
// Create byte array in local encoding
66-
byte ba[] = dfTime.format(timestamp).getBytes(LOCALCCSID);
66+
byte ba[] = dfTime.format(timestamp).getBytes(CCSID);
6767

6868
// Copy into the byte array provided by the CommAreaHolder object
6969
System.arraycopy(ba, 0, cah.getValue(), 0, ba.length);

0 commit comments

Comments
 (0)