-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding debugging statement for issue 69 where dialect node does not h…
…ave serial number
- Loading branch information
1 parent
86b2237
commit 78b2779
Showing
4 changed files
with
96 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
IDENTIFICATION DIVISION. | ||
PROGRAM-ID. IRREDUCIBLE-TEST. | ||
AUTHOR. MOJO. | ||
ENVIRONMENT DIVISION. | ||
DATA DIVISION. | ||
WORKING-STORAGE SECTION. | ||
01 TESTING PIC 9(8) VALUE 100. | ||
PROCEDURE DIVISION. | ||
INITSTART. | ||
***************************************************************** | ||
***************************************************************** | ||
WRITEQTDQ. | ||
***************************************************************** | ||
|
||
EXEC CICS | ||
WRITEQ TD | ||
QUEUE ('TERR') | ||
FROM (MSGE-RCRD) | ||
LENGTH (LENGTH OF MSGE-RCRD) | ||
NOHANDLE | ||
END-EXEC. | ||
|
||
IF EIBRESP > 0 | ||
PERFORM WRITECONSOLE THRU WC-EXIT | ||
END-IF. | ||
|
||
TDQ-EXIT. EXIT. | ||
***************************************************************** | ||
WRITECONSOLE. | ||
***************************************************************** | ||
|
||
MOVE EIBRESP TO WSC-EIBRESP. | ||
MOVE MSGNO TO WSC-MSGNO. | ||
|
||
EXEC CICS | ||
WRITE OPERATOR | ||
TEXT (WSC-MSG) | ||
TEXTLENGTH (62) | ||
EVENTUAL | ||
END-EXEC. | ||
|
||
WC-EXIT. EXIT. | ||
|
||
***************************************************************** | ||
TERMIN. | ||
***************************************************************** | ||
|
||
EXEC CICS RETURN END-EXEC. | ||
|
||
TERMIN-EXIT. EXIT. |
39 changes: 39 additions & 0 deletions
39
smojol-toolkit/src/main/java/org/smojol/toolkit/examples/BaseModelMain_Issue69.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.smojol.toolkit.examples; | ||
|
||
import com.google.common.collect.ImmutableList; | ||
import org.smojol.common.dialect.LanguageDialect; | ||
import org.smojol.common.flowchart.FlowchartOutputFormat; | ||
import org.smojol.common.id.UUIDProvider; | ||
import org.smojol.common.resource.LocalFilesystemOperations; | ||
import org.smojol.toolkit.analysis.pipeline.ProgramSearch; | ||
import org.smojol.toolkit.analysis.task.analysis.CodeTaskRunner; | ||
import org.smojol.toolkit.interpreter.FullProgram; | ||
import org.smojol.toolkit.interpreter.structure.OccursIgnoringFormat1DataStructureBuilder; | ||
import org.smojol.toolkit.task.AnalysisTaskResult; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import static org.smojol.toolkit.task.CommandLineAnalysisTask.*; | ||
|
||
public class BaseModelMain_Issue69 { | ||
public static void main(String[] args) throws IOException, InterruptedException { | ||
Map<String, List<AnalysisTaskResult>> result = new CodeTaskRunner("/Users/asgupta/code/smojol/smojol-test-code", | ||
"/Users/asgupta/code/smojol/out/report", | ||
ImmutableList.of(new File("/Users/asgupta/code/smojol/smojol-test-code")), | ||
"/Users/asgupta/code/smojol/che-che4z-lsp-for-cobol-integration/server/dialect-idms/target/dialect-idms.jar", | ||
LanguageDialect.COBOL, new FullProgram(FlowchartOutputFormat.PNG, new UUIDProvider()), | ||
new UUIDProvider(), | ||
new OccursIgnoringFormat1DataStructureBuilder(), | ||
new ProgramSearch(), | ||
new LocalFilesystemOperations()) | ||
.runForPrograms(ImmutableList.of(BUILD_BASE_ANALYSIS), ImmutableList.of("cics.cbl")); | ||
result.forEach((key, results) -> { | ||
System.out.println(key); | ||
results.forEach(System.out::println); | ||
}); | ||
System.out.println("DONE"); | ||
} | ||
} |