Getting error as Syntax Error: didn't expect a second occurrence of FULLNAME while running script in schedulix 2.7

7 views
Skip to first unread message

salonimi...@gmail.com

unread,
Aug 4, 2021, 2:03:53 AM8/4/21
to schedulix

Hi Ronald,

While running the below script , I am getting this error Syntax Error: didn't expect a second occurrence of FULLNAME.

alter job definition SYSTEM.'MOM_SCHEDULER'.'PHASE_1'
add or alter children = (

                SYSTEM.'MOM_SCHEDULER'.'RMS'.'RMS_PHASE1'.'BATCH_STOCKCOUNTUPLOAD'
                        alias = none
                CHILDSUSPEND
                nicevalue = 0
                static
                translation = none
                ignore dependency = none,

                SYSTEM.'MOM_SCHEDULER'.'RMS'.'RMS_PHASE1'.'STOCKCOUNTPROCESS'
                        alias = none
                CHILDSUSPEND
                nicevalue = 0
                static
                translation = none
                ignore dependency = none

                SYSTEM.'MOM_SCHEDULER'.'RESA_BATCH'
                        alias = none
                CHILDSUSPEND
                nicevalue = 0
                static
                translation = none
                ignore dependency = none,

                SYSTEM.'MOM_SCHEDULER'.'RMS'.'RMS_PHASE1'.'STKVAR'
                        alias = none
                CHILDSUSPEND
                nicevalue = 0
                static
                translation = none
                ignore dependency = none,

                SYSTEM.'MOM_SCHEDULER'.'RMS'.'RMS_PHASE1'.'BATCH_DITINSRT'
                        alias = none
                CHILDSUSPEND
                nicevalue = 0
                static
                translation = none
                ignore dependency = none
 );

What could be the cause ? Can you please help?

Thank you,
Saloni

Ronald Jeninga

unread,
Aug 4, 2021, 2:17:46 AM8/4/21
to schedulix
Hi Saloni,

that's an easy one ;-)
There's a comma missing after

               SYSTEM.'MOM_SCHEDULER'.'RMS'.'RMS_PHASE1'.'STOCKCOUNTPROCESS'
                        alias = none
                CHILDSUSPEND
                nicevalue = 0
                static
                translation = none
                ignore dependency = none

The parser now finds a second instance of the full qualified job name (among a lot of other duplicate entries, but it doesn't get that far).
Since it doesn't know which name is the "correct" one, and which is the "wrong" one, it can only report that there's a duplicate type of information in the description of the parent-child relationship.

Just add a comma and it'll work.

Best regards,

Ronald
Reply all
Reply to author
Forward
0 new messages