Skip to content

Commit 6f872ef

Browse files
authored
Remove LENGERR checking in CICS Condition Handling to improve portability. (#21)
I tested out the V6.1 build, from Eclipse in an Integrat build and the JLN1,2,3 transactions work correctly.
1 parent 4540a79 commit 6f872ef

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import com.ibm.cics.server.Container;
2222
import com.ibm.cics.server.ContainerErrorException;
2323
import com.ibm.cics.server.InvalidRequestException;
24-
import com.ibm.cics.server.LengthErrorException;
2524
import com.ibm.cics.server.Program;
2625
import com.ibm.cics.server.Task;
2726

@@ -124,8 +123,8 @@ public static void main(String[] args)
124123
if (charContainer != null) {
125124
try {
126125
resultStr = charContainer.getString();
127-
} catch (LengthErrorException e) {
128-
task.abend("LENG");
126+
} catch (CicsConditionException e) {
127+
task.abend("LPGC");
129128
}
130129
}
131130
else {
@@ -142,8 +141,8 @@ public static void main(String[] args)
142141
byte[] ba = null;
143142
try {
144143
ba = bitContainer.get();
145-
} catch (LengthErrorException e) {
146-
task.abend("LENG");
144+
} catch (CicsConditionException e) {
145+
task.abend("LPGC");
147146
}
148147
ByteBuffer bb = ByteBuffer.wrap(ba);
149148
cicsrc = bb.getInt();
@@ -157,7 +156,7 @@ public static void main(String[] args)
157156
msg = MessageFormat.format("Returned from link to {0} with no CICS RC", prog.getName());
158157
}
159158
}
160-
catch (ContainerErrorException | ChannelErrorException | CCSIDErrorException | CodePageErrorException exc) {
159+
catch (CicsConditionException exc) {
161160

162161
// Log message and continue
163162
msg = MessageFormat.format("ERROR from link to {0} with message({1}) ",

0 commit comments

Comments
 (0)