Description
When we run the analysis of PL1 the analysis crashes with the below error as shown in the attached screen shot
The analysis has not ended correctly (Error code 2)
Observed in CAST AIP
Release | Yes/No |
---|---|
8.3.x |
Observed on RDBMS
RDBMS | Yes/No |
---|---|
Oracle Server | |
Microsoft SQL Server | |
CSS |
Step by Step Scenario
- Below is the step-by-step scenario leading to the problem:
- Package and deliver the source code.
- Accept the delivery and set it as current version.
- Run the analysis for the Mainframe analysis unit.
Impact of the Problem
The impact of the problem on the analysis or the dashboard is: The analysis crash in between and the analysis result would not be as expected on the dashboard.
Action Plan
To fix the problem, proceed as follows:
- In order to analyze the PLI files you have to determine the column number of the indicated area.
Column number of the indicated area can be found from any PL1 file in the source code as shown below
FILEIO:PROCEDURE OPTIONS(MAIN); /* PROGID. FILEIO AUTHOR. Test file DATE . 2016-Aug-08 COMMENT */ /*DECLARE */ DCL 1 USER_DETAILS, 2 NAME CHAR(15), 2 AGE CHAR(02), 2 ADDR CHAR(15), 2 STREET CHAR(15), 2 CITY CHAR(15), 2 COMMENT CHAR(18); %PAGE; DCL INP_CTR FIXED DEC(2) INIT(00); DCL INP_FILE_EOF BIT INIT('1'B); DCL USERFLE FILE INPUT RECORD ENV(F %SKIP; RECSIZE(80)); /*OPEN FILE*/ OPEN FILE(USERFLE); ON ENDFILE(USERFLE) INP_FILE_EOF='0'B; READ FILE(USERFLE) INTO(USER_DETAILS); /*DO UNTIL EOF*/ DO WHILE(INP_FILE_EOF); INP_CTR=INP_CTR+1; PUT SKIP LIST('REC#'||INP_CTR); PUT SKIP LIST('NAME '||NAME||'AGE '||AGE||'ADDR1 '||ADDR|| 'STREET '||STREET||'CITY '||CITY||'COMMENT '|| COMMENT); READ FILE(USERFLE) INTO(USER_DETAILS); END; END FILEIO;
- Add the column number to the below settings in CAST-MS
"Column of Indicator Area" to "2" in CMS Analysis settings - Run the analysis.
Impact of the solution on the analysis or the dashboard is
The analysis will run as expected and dashboard will show expected result.
Notes/comments
Related Pages