Test for abend code using SAS code



Get solution for your ABEND Codes & System Error Messages, SQL Codes, File Status etc...

Test for abend code using SAS code

Postby jinxed21 » Thu Jul 02, 2009 5:41 pm

Hi,

Is there a way to release an abend code using SAS, if a file transfer is not successful. Specifically , for a file transfer during an outage period
jinxed21
 
Posts: 6
Joined: Thu May 21, 2009 11:14 am
Has thanked: 0 time
Been thanked: 0 time

Re: Test for abend code using SAS code

Postby dick scherrer » Thu Jul 02, 2009 11:13 pm

Hello,

How does one "release an abend code"?

You need to explain in more detail what you are tyring to accomplish and what problem(s) exist.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Test for abend code using SAS code

Postby jinxed21 » Fri Jul 03, 2009 3:24 pm

I want to run a job that transfers a file whenever its predecessor completes. But I have been informed by the file transfer team that there is an outage period for 3-4 hours within which I cannot send the files.
I want to know if there is a way to abend the job if it runs during that outage period.
If the job runs successfully during the outage but the files not transferred, will there still be a way to abend the job using SAS/COBOL or via JCL itself?
jinxed21
 
Posts: 6
Joined: Thu May 21, 2009 11:14 am
Has thanked: 0 time
Been thanked: 0 time

Re: Test for abend code using SAS code

Postby dick scherrer » Sat Jul 04, 2009 7:28 am

Hello,

So, this may not be a SAS issue? How is the file transferred?

You might talk with your scheduling and ask if your system supports not only naming this as having a predecessor, but that it must not run in a certain time window.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Test for abend code using SAS code

Postby jinxed21 » Mon Jul 06, 2009 10:21 am

MFT file transfer..

Apart from scheduling changes, is there anyway we could abend the job which runs during that time period?(Either using JCL or any abend condition)?
jinxed21
 
Posts: 6
Joined: Thu May 21, 2009 11:14 am
Has thanked: 0 time
Been thanked: 0 time

Re: Test for abend code using SAS code

Postby dick scherrer » Mon Jul 06, 2009 11:45 pm

Hello,

You could write code that accepts a parm of the "problem times (start/end)" and if the current system time is in the problem time range, force an abend. It would be better to implement a scheduling solution. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Test for abend code using SAS code

Postby jinxed21 » Wed Jul 22, 2009 6:42 pm

Thanks for the tip...Will try this.
jinxed21
 
Posts: 6
Joined: Thu May 21, 2009 11:14 am
Has thanked: 0 time
Been thanked: 0 time

Re: Test for abend code using SAS code

Postby dick scherrer » Thu Jul 23, 2009 2:46 am

You're welcome - i still suggest a scheduling solution, though. . .

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to ABENDS & SQL Codes

 


  • Related topics
    Replies
    Views
    Last post