IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

capture BTQMAIN/FASTLOAD(teradata) return code in JCL


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
v v vimal nair

New User


Joined: 27 Nov 2006
Posts: 4
Location: India

PostPosted: Tue Jan 13, 2009 7:50 pm
Reply with quote

Hi every body,

New Year Greetings!!

i want to know is there any way in JCL by which we can capture or track the any return codes or failure in execution of BTQMAIN or FASTLOAD on teradata base through JCL.

i.e. how to abend a JCL if any operation on teradata fails or any error occurs during the process.

I tried to search about this, however couldn't find much on topics related to teradata.

Apologize if i break any rules and regulation of this forum.

Thanks in advance!!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Jan 13, 2009 8:03 pm
Reply with quote

Quote:

i.e. how to abend a JCL if any operation on teradata fails or any error occurs during the process.
How would this work? JCL does nothing but execute programs. You would have to create the JCL to run a program that monitors the processes and sets an abend code where necessary. What would be the communication method? What does the API look like? Will you have to write this program or are you planning on using an existing program?
Back to top
View user's profile Send private message
v v vimal nair

New User


Joined: 27 Nov 2006
Posts: 4
Location: India

PostPosted: Tue Jan 13, 2009 8:17 pm
Reply with quote

Robert,

Yes that's true that we use JCL to execute programs, however my intention was to know if is there any IBM utility or program if any which can help here.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Jan 13, 2009 8:23 pm
Reply with quote

Wouldn't it make more sense to check with Teradata? IBM utilities and programs generally tend to run on the mainframe and while they can interact with external data sources and sinks (via FTP and SMTP for example) for which there's defined interfaces, the utilities process mainframe data.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jan 13, 2009 8:27 pm
Reply with quote

This previous topic deals with a similar issue of trapping the return codes of specific job steps as the job is running.
Back to top
View user's profile Send private message
v v vimal nair

New User


Joined: 27 Nov 2006
Posts: 4
Location: India

PostPosted: Tue Jan 13, 2009 8:32 pm
Reply with quote

Robert,

Thanks for your prompt reply.

I have this on mainframes i have a batch job interacting with TERADATA database and its working fine however i was trying to do this as the JOB will complete successfully without any abend even if some thing goes wrong while process(upload data etc.) to teradata.

Meanwhile i am trying to find out from teradata side however i am getting information related to unix and teradata nothing relevant to mainframe side.

There are some other alternatives which i was thinking like having a rexx code to capture spool data and check for the same, however was looking for something if its available to use and try.

any ways thanks a lot for your help.
cheers!!
icon_biggrin.gif
Back to top
View user's profile Send private message
v v vimal nair

New User


Joined: 27 Nov 2006
Posts: 4
Location: India

PostPosted: Tue Jan 13, 2009 8:40 pm
Reply with quote

Hi Kevin (superK),

Nice to see your reply, as i have read many of your posts/replies.

Thanks very much, your link seems to be very useful as that is something i am going to try.

Thanks again icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top