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

PGM=$A usage io JCLs


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rosmi joseph

New User


Joined: 17 Sep 2007
Posts: 68
Location: Kochi

PostPosted: Thu May 24, 2012 6:42 pm
Reply with quote

Hi,

We observed the below piece of step in one of the jobs in our workstation. Can anyone help on what it means.

//$AUTO EXEC PGM=$A,
// COND=(0,LE),
// PARM='Q<,LOC=140'
//*

Thanks
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu May 24, 2012 6:47 pm
Reply with quote

Did you try Google? Toss quotes around $AUTO and PGM=$A, and I included the word EXEC, but up to you to experiment.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1787
Location: Bloomington, IL

PostPosted: Thu May 24, 2012 6:56 pm
Reply with quote

Read up on the COND parameter of the EXEC statement, and it will become apparent what is happening.
Back to top
View user's profile Send private message
rosmi joseph

New User


Joined: 17 Sep 2007
Posts: 68
Location: Kochi

PostPosted: Thu May 24, 2012 6:56 pm
Reply with quote

Didnt get any solid data from Google. Just curious to know what this step means. As such the COND code is set in such a way that only if the previous step fails this would execute.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Thu May 24, 2012 7:01 pm
Reply with quote

What do you not understand about the JLC shown?
Back to top
View user's profile Send private message
rosmi joseph

New User


Joined: 17 Sep 2007
Posts: 68
Location: Kochi

PostPosted: Thu May 24, 2012 7:05 pm
Reply with quote

Unable to understand the purpose of it.

//$AUTO EXEC PGM=$A,
// COND=(0,LE),
// PARM='Q<,LOC=140'
//*

1) What does $AUTO mean?

2) What does PGM=$A do?

3) Does the above send any notification to any jobtrac location?

These are my queries.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Thu May 24, 2012 7:08 pm
Reply with quote

$AUTO is the stepname
$A is the program to be executed - what it does we have no idea as it was probably written in-house
Who knows - this is only the EXEC PGM statement - basic JCL.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu May 24, 2012 7:22 pm
Reply with quote

Hello,

Suggest you talk with your Scheduling or Computer Operations people.

The $xxxx entries may be for the system to set up at run time. Long before the scheduling products were "everywhere", we wrote a "reader exit" that customized JCL on-the-fly.

Otherwise, as Nic says, these are the stepname and program to execute.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Thu May 24, 2012 7:32 pm
Reply with quote

Having just come back to my desk after dealing with this in my guesthouse I tried running a BR14 with a stepname of $AUTO - invalid label but when trying with £AUTO it worked. Now the differene could be that £ is substituted for $ in the UK & Ireland codepage OR, as Dick says, the $ could be a marker for some job setup/submission software although they are more likely to use something that is NOT a valid character. Try running an IEFBR14 with a stepname of $AUTO and see what happens. (Try with £AUTO as well and see the difference).
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu May 24, 2012 7:55 pm
Reply with quote

Well, the hits I got were for CA-Jobtrac.

Only a guess, but do you have it at your site?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu May 24, 2012 7:56 pm
Reply with quote

Nic -- I've rn into this before. The US $ symbol becomes the UK £ symbol on UK mainframes (I used to use a machine based in Nottingham). If the one is valid, the other is invalid. Whichever one is valid is legitimate for use in program names, PDS member names, and so forth. I've transferred PDS files from machine to machine, and ££README member became $$README member on the other machine.
Back to top
View user's profile Send private message
chandana k

New User


Joined: 18 Jul 2012
Posts: 2
Location: INDIA

PostPosted: Wed Jul 18, 2012 12:31 pm
Reply with quote

This EXEC PGM is used to execute the current JCL out of the JOBTRAC scheduler by adding Q dependency at the specified location(here 140)



Nic Clouston wrote:
$AUTO is the stepname
$A is the program to be executed - what it does we have no idea as it was probably written in-house
Who knows - this is only the EXEC PGM statement - basic JCL.




rosmi joseph wrote:
Unable to understand the purpose of it.

//$AUTO EXEC PGM=$A,
// COND=(0,LE),
// PARM='Q<,LOC=140'
//*

1) What does $AUTO mean?

2) What does PGM=$A do?

3) Does the above send any notification to any jobtrac location?

These are my queries.
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Thu Jul 19, 2012 12:23 am
Reply with quote

This looks like scheduler substitution. It may point to test regions or system.

look at the job successful execution and jes2 statement, if there any populated value.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts STEM usage in REXX CLIST & REXX 14
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts JCL and TAPE drives: how to maximize ... JCL & VSAM 9
No new posts Updating endevor JCLs CA Products 5
Search our Forums:

Back to Top