2E Program model ends abnormally after IBM OS upgrade
search cancel

2E Program model ends abnormally after IBM OS upgrade

book

Article ID: 273732

calendar_today

Updated On:

Products

CA 2E

Issue/Introduction

We have a 2E program model that is ending abnormally,

When we go into SYNON and try to generate the program the following is presented:  The job ended abnormally.                           
                                                                               
                                                                               
 SEL: G-Rqs GEN, C-Rqs CRT, E-STRSEU, D-Drop, JOB(1-DSP, 4-HLD, 6-RLS, 9-CNL)  
 F3=Exit  F5=Reload  F6=Msgs  F8=Submitted jobs  F9=Command line  ENTER-Submit 
 Errors occurred on SBMJOB command.                                            

Environment

Release : 8.7 +

Cause

We have 3 issues linked together

1) After the IBM OS upgrade, the customer was not able to compile the 2E programs.

2) After configuring the call command of DSPFIL program which has 2 parameters in the YWRKMNU/YDSNMNU menu we are not able to call the program via the Menu and the screen showing some wrong data in the Control Positioner/Filter. 

Analysis: As we discussed on the call, we see an issue with the AS400 Menu configuration but not a 2E error.

We observed the functions with a single Parameter value are working as expected. The functions that have more than one parameter are failing. 

3) The third one is we need to use proper header and footer for our display files to work our display files properly with correct header and footer and Options values.

Resolution

The resolution has three steps:

1) After the IBM OS upgrade, the customer was not able to compile the 2E programs.


Resolution: As the OS upgrade happened, Routing entries configured in the JOBD qbatch of the 2E Model library are reset in the QBATCH Subsystem.

So By using the ADDRTGE command, we need to add the routing entry which was configured in ModelLibrary/QBATCH jobd's i.e YCRTOVR in the QBACTH subsystem description(SBSD) by attaching the program to YBRTPRC.

Example command:
ADDRTGE SBSD(QBATCH)          
        SEQNBR(XXXX)   
        CMPVAL(YCRTOVR)       
        PGM(Y1SY/YBRTPRC)     

Note: (XXX is the next available sequence number..)

2) After configuring the call command of the DSPFIL(Display File) program which has 2 parameters in the YWRKMNU/YDSNMNU menu we are not able to call the program via the Menu and the screen showing some wrong data in the Control Positioner/Filter. 

 

We observed the functions with a single Parameter value are working as expected. The functions that have more than one parameter are failing. 

So, Instead of PGM, we used CMDCALL in the YWRKMNU menu configuration. 


After the  IBM OS upgrade, the CALL command expects the parameters to be passed more specific.

To avoid junk characters populated in the second parameter *ENTRY Parameters we need to pass the second parameter in the call statement as PARM((' ' *CHAR 7) (' ' *CHAR 60))

Here, the First parameter is by default *ReturnCode i.e. of Character length 7.


The second Parameter is the Business Name i.e. of character length of 60.

This is expected as may be because of an OS upgrade by the client. But it will be always good to be more specific and pass parameters as PARM((' ' *CHAR 7) (' ' *CHAR 60). So that the Second parameter character field is initialized properly. i.e. All 60 characters of the second field in the memory are initialized with *BLANK(' ').

3) The third one is we need to use proper header and footer for our display files to work our display files properly with correct header and footer and Options values.


We can see all headers and footers by positioning "*Standard header/footer" in the Object field in the 
"EDIT DATABASE RELATIONS" screen of 2E.


Used one of the proper headers in the DSPFIL functions by zooming into the functions in the "EDIT FUNCTIONS " screen by taking subfile option Z and then it takes us to the "EDIT FUNCTION DETAILS" screen. And then take 'F7=Options'. This takes us to the "EDIT FUNCTION OPTIONS" screen. Thereby using the function key 


"F5=Select header/footer" we can select the required header and footer.