Phantom Aborting with @ABORT.CODE = 1

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
JPalatianos
Premium Member
Premium Member
Posts: 306
Joined: Wed Jun 21, 2006 11:41 am

Phantom Aborting with @ABORT.CODE = 1

Post by JPalatianos »

Hi,
We have a sequence job that call a MS Sql Server Proc that creates Cognos reports for us. When the sequence runs and only one execution of the job is hit we are fine. When we have 2 or more reports queued up we get the following error for the 2nd execution of the job.

Thanks - - John

Project:FORM5500 (PAERSCBBLA0293)
Job name:ProduceSchC
Event #:26
Timestamp:7/30/2009 11:06:50 AM
Event type:Warning
User:PRUDENTIAL\X090842
Message:
DataStage Job 99 Phantom 9920
Aborting after 1 Rows written to ProduceSchC.xfmCognosCall.outCognosError
Program "JOB.9809447.DT.1502744529.TRANS1": Line 95, Abort.
Attempting to Cleanup after ABORT raised in stage ProduceSchC..xfmCognosCall
DataStage Phantom Aborting with @ABORT.CODE = 1
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Do a "reset" of the job and see what the "from previous run..." entry in the log file states.
JPalatianos
Premium Member
Premium Member
Posts: 306
Joined: Wed Jun 21, 2006 11:41 am

Post by JPalatianos »

I did a reset of the job and do not see any "from previous" entries in the log.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The message you posted looks like it came from a sequence, you should reset the actual job that aborted to get the abort cause in the "from previous run..." entry.
JPalatianos
Premium Member
Premium Member
Posts: 306
Joined: Wed Jun 21, 2006 11:41 am

Post by JPalatianos »

It is a job which has schedule in it's name beacuse it is creating Schedule C reports and makes it look like a sequence but it is a server job.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Job design?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What does TRANS1 do? You could look at the source file around line 95, located in your project directory under RT_BP99/JOB.9809447.DT.1502744529.TRANS1
JPalatianos
Premium Member
Premium Member
Posts: 306
Joined: Wed Jun 21, 2006 11:41 am

Post by JPalatianos »

The job design is simple and ODBC1 stage to a transformer to two ODBC STAGES(2 and 3). The first ODBC stage calls the sql server proc and the 2 post transformer only have update statement in them.

I tried looking at the file (DT.1502744529.TRANS1 ) but it is mostly hex code(unreadable)
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You went into the BP.O subdirectory, not the BP one. The "O" stands for Object :)
JPalatianos
Premium Member
Premium Member
Posts: 306
Joined: Wed Jun 21, 2006 11:41 am

Post by JPalatianos »

I figured as much but when I went into the RT_BP99 folder I only see the file .uvnlsmap
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Can you do a recompile and see if the source appears?
JPalatianos
Premium Member
Premium Member
Posts: 306
Joined: Wed Jun 21, 2006 11:41 am

Post by JPalatianos »

That did the trick.....I guess I need to have the developer look at this sinc I have no idea what it means.
Starting at line 95:

IF STAGECOM.NUM.ROWS(3) GE 1 THEN ABORT 'Aborting after ':STAGECOM.NUM.ROWS(3):' Rows written to ProduceSchC.xfmCognosCall.outCognosError'
IF NOT(Pin%%V0S2P7.REJECTEDCODE) THEN
REJECTED = @FALSE
END ELSE
Pin%%V0S2P7.REJECTED = @TRUE
END
END
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It looks like you've got a reject link coded to abort the job after 1 row is sent down it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply