Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script review 1

Status
Not open for further replies.

Imstillhere

IS-IT--Management
Jun 6, 2008
334
US
Can anyone paste this and see what you make of it, when trying to save/validate.. My cc 7.0 tells me

"An end of file is encountered in the script in the middle of a statement.
location: Line 119"
My script ends at line 118 ?


EVENT HANDLER
EVENT CALL ON HOLD: GIVE MUSIC DS_music_gv
END HANDLER

IF NOT OUT OF SERVICE DS_Wildcard THEN
ROUTE CALL DS_Wildcard_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF

IF NOT OUT OF SERVICE DS_emergency OR
DS_emergency_gv=TRUE OR
Call_center_emergency_gv=TRUE THEN
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF

IF DAY OF WEEK=DS_weekend_gv THEN
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF

IF TIME OF DAY = DS_afterhours_PreCert_gv THEN
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF

/* Initial queueing of call to correct CDN */
IF CDN = DS_PreCert_CDNs_gv THEN
IF NOT OUT OF SERVICE DS_PreCert_sk_gv THEN
QUEUE TO SKILLSET DS_PreCert_sk_gv WITH PRIORITY DS_priority_low_gv
WAIT 2
EXECUTE Music_section
ELSE
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF
END IF
IF CDN = DS_PreReg_Rich_Facilities THEN
IF NOT OUT OF SERVICE DS_PreReg_Rich_sk_gv THEN
QUEUE TO SKILLSET DS_PreReg_Rich_sk_gv WITH PRIORITY DS_priority_low_gv
WAIT 2
EXECUTE Music_section
ELSE
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF
END IF

IF CDN = DS_PreReg_Spots_cdn_gv THEN
IF NOT OUT OF SERVICE DS_Spots_PreReg_sk_gv THEN
QUEUE TO SKILLSET DS_Spots_PreReg_sk_gv WITH PRIORITY DS_priority_low_gv
WAIT 2
EXECUTE Music_section
ELSE
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF
END IF
EXECUTE Wait_loop

/* --------------------- */
SECTION Music_section
/* --------------------- */
GIVE MUSIC DS_music_gv
WAIT 2

/* --------------------- */
SECTION Wait_loop
/* --------------------- */

GIVE RAN DS_hold_in_queue_msg1_gv
WAIT DS_wait_timer1_gv
IF NOT QUEUED THEN
IF CDN=DS_PreCert_cdn_gv THEN
IF NOT OUT OF SERVICE DS_PreCert_sk_gv THEN
QUEUE TO SKILLSET DS_PreCert_sk_gv WITH PRIORITY DS_priority_high_gv
WAIT 2
EXECUTE Wait_loop
ELSE
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF
END IF
IF CDN = DS_PreReg_Rich_Facilities THEN
IF NOT OUT OF SERVICE DS_PreReg_Rich_sk_gv THEN
QUEUE TO SKILLSET DS_PreReg_Rich_sk_gv WITH PRIORITY DS_priority_high_gv
WAIT 2
EXECUTE Wait_loop
ELSE
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF
END IF
IF CDN = DS_PreReg_Spots_cdn_gv THEN
IF NOT OUT OF SERVICE DS_Spots_PreReg_sk_gv THEN
QUEUE TO SKILLSET DS_Spots_PreReg_sk_gv WITH PRIORITY DS_priority_low_gv
WAIT 2
EXECUTE Music_section
ELSE
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF
END IF
EXECUTE WAIT LOOP
 
You are missing an end if where the *****'s are

SECTION Wait_loop
/* --------------------- */

GIVE RAN DS_hold_in_queue_msg1_gv
WAIT DS_wait_timer1_gv
IF NOT QUEUED THEN
IF CDN=DS_PreCert_cdn_gv THEN
IF NOT OUT OF SERVICE DS_PreCert_sk_gv THEN
QUEUE TO SKILLSET DS_PreCert_sk_gv WITH PRIORITY DS_priority_high_gv
WAIT 2
EXECUTE Wait_loop
ELSE
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF
END IF
*******
IF CDN = DS_PreReg_Rich_Facilities THEN
IF NOT OUT OF SERVICE DS_PreReg_Rich_sk_gv THEN
QUEUE TO SKILLSET DS_PreReg_Rich_sk_gv WITH PRIORITY DS_priority_high_gv
WAIT 2
EXECUTE Wait_loop
ELSE
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF
END IF
IF CDN = DS_PreReg_Spots_cdn_gv THEN
IF NOT OUT OF SERVICE DS_Spots_PreReg_sk_gv THEN
QUEUE TO SKILLSET DS_Spots_PreReg_sk_gv WITH PRIORITY DS_priority_low_gv
WAIT 2
EXECUTE Music_section
ELSE
ROUTE CALL DS_emergency_msg_gv CONTROLLED
WAIT 2
DISCONNECT
END IF
END IF
EXECUTE WAIT LOOP
 
Thank you.. I must have looked past it 20 times.. geesh !!
Thank you thank you thank you !!!
 
j00012 i corrected myself earlier in the post on that last line, but thank you. BK found a missing end if which did the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top