MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Submitting a JCL thru Cobol
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Jun 16, 2005 12:32 am    Post subject: Reply with quote

In general, having a program submit a job is bad practice because the program has no way of knowing if or when the job will run and if, when it finally does run, if it was successful. If job card requirements change, or data set names or many other things, the program needs to be recompiled. There are many other reasons not do do this (job classes, authorization, authentication, etc, etc, etc). In this case, you should use dynamic allocation to delete the data set, or if you know the name ahead of time, just use an extra step in the job. Search this board for examples of dynamic allocation.

By the way, the correct terminology is "submit JCL", not "submit a JCL". If you need the article, then the terminology is to submit a job or a job stream. I only mention this because the term "a JCL" is new within the last few years or so and identifies the user as a "newbie" (and usually as an employee of an outsourcing contracting firm). Using correct terminology will often get you better, more accurate, more complete answers because that particular term does not sit well with many of us old timers for reasons better left alone but which should be obvious.
Back to top
View user's profile Send private message Visit poster's website
avid_lrner
Beginner


Joined: 15 Apr 2005
Posts: 21
Topics: 9

PostPosted: Fri Jun 17, 2005 7:05 am    Post subject: Submitting a JCL thru Cobol Reply with quote

Hi semigeezer,

Noted your reply and will make sure to use the right terminology.

Thanks for the correction.


regards,
avid_lrner.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group