Bonjour Phon
Thanks a lot for your feedback. I agree with you it should have been better to Transfer the element with the Delete From option. Becasue this was not the case I discovered this issue where you enter multiple Actions for 1 single element in a SCL file, and when Endevor is executing those actions they are automatically reorder.
Here is a part of a SCL for a dedicated package :
STATEMENT #1
SET STOPRC 16 .
STATEMENT #2
TRANSFER ELEMENT 'RFQ0600'
FROM ENVIRONMENT 'NDVPROD' SYSTEM 'JCLPROD' SUBSYSTEM 'PCL'
TYPE 'JSTCA7' STAGE P
TO ENVIRONMENT 'NDVPROD' SYSTEM 'REGUL' SUBSYSTEM 'ARCHIVE'
TYPE 'ARCHDIV' STAGE P
ELEMENT 'RFQ0600'
OPTIONS CCID 'SBS201130A' WITH HISTORY BYPASS ELEMENT DELETE
BYPASS GENERATE PROCESSOR
….
STATEMENT #6
DELETE ELEMENT 'RFQ0600'
FROM ENVIRONMENT 'NDVPROD' SYSTEM 'JCLPROD' SUBSYSTEM 'PCL'
TYPE 'JSTCA7' STAGE P
OPTIONS CCID 'SBS201130A'
.
Now the Sysout when executing the Package :
E N D E V O R A C T I O N S U M M A R Y R E P O R T VERSION 17.0 SERIAL B1700C
( P A C K A G E I N S P E C T I O N )
PROC NDVR +------------ INVENTORY INFORMATION -----------+ ACTION ACTION STMT SCL
ACTION ELEMENT RC RC ENVIRONMENT SYSTEM SUBSYSTEM TYPE STAGE TIME NUMBER NUMBER WRITTEN
DELETE RFA600C 0000 0000 NDVPROD REGUL RVT BND P 09:43:47 1 8
DELETE RFA600C 0000 0000 NDVPROD REGUL RVT PGMCB2B P 09:43:47 2 7
DELETE RFA620B 0000 0000 NDVPROD REGUL RVT PGMCB2B P 09:43:50 3 9
DELETE RFQ0600 0004 0000 NDVPROD JCLPROD PCL JSTCA7 P 09:43:50 4 6
*NOTFND* TRANSFER RFQ0600 0004 NDVPROD JCLPROD PCL JSTCA7 P 2
*NOTFND* TRANSFER RFA600C 0004 NDVPROD REGUL RVT PGMCB2B P 3
*NOTFND* TRANSFER RFA600C 0004 NDVPROD REGUL RVT BND P 4
*NOTFND* TRANSFER RFA620B 0004 NDVPROD REGUL RVT PGMCB2B P 5
END OF EXECUTION LOG - HIGHEST ENDEVOR RC = 0004
When executing the Package SCL, the DELETE actions have been automatically executed first. The initial order of the Actions is not taken into account (action #6 is now on 5th position, and action #1 is on 6th position in the list).
As it might leads to serious problems (in this case the source of the elements have been totally deleted from Endevor!!), it should be interesting to know that there is a default sequence applyed in Endevor to execute actions in a SCL. If we cannot change this sequence, at least we should be aware of it, dont you think so?
Thanks a lot
Have a nice day
Rgds
Jean-Christophe
Original Message:
Sent: 12-16-2020 09:10 AM
From: Phontilla Shuffitt
Subject: Automatic reordering of Actions for one element in a single SCL
My question is why have two different actions, when you can issue the TRANSFER action with a DELETE 'FROM' Element, which will do what you want. But I do not know of any customization that you can make to force one action before another.
Phon
------------------------------
Software Engineer
Enterprise Technology
Fiserv
Ky, USA
Original Message:
Sent: 12-15-2020 04:37 AM
From: Jean-Christophe GUILLEMIN
Subject: Automatic reordering of Actions for one element in a single SCL
Bonjour
Does anyone knows if there is an automatic order applied to actions for a unique element in a single SCL file? For example when the following sequence is defined in the SCL : 1/ TRANSFER element X, 2/DELETE element X (2 actions for 1 single element). When running the SCL in batch mode the action sequence is automatically changed as follows : 1/ DELETE 2/TRANSFER
Is there a general rule regarding the automatic sequence of actions when multiple actions are selected for one element in a single SCL command file? If yes, can this rule be manually updated somewhere in Endevor parameters?
Thanks for your support
Rgds
Jean-Christophe