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

A question on OVERRIDE.


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

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Mon Jan 25, 2010 3:53 pm
Reply with quote

Hi All... ,

I need concept on below.

Job
EXEC prcA
STEP3.INFILE DD DSN = XYZ.JF1
....

prcA
..
..
STEP3 exec pgm=pgmA
infile DD DSN = XYZ.PF1

...

The above code overrides XYZ.PF1 file in proc by XYZ.JF1 file in job.


Now my proc has below concatenated DDs

prcA
..
..
STEP3 exec pgm=pgmA
infile DD DSN = XYZ.PF1
DD DSN =XYZ.PF2
DD DSN =XYZ.PF3

the requirement is i need to override only file XYZ.PF2 in proc through JOB.

Please let me know the concept on this.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jan 25, 2010 4:03 pm
Reply with quote

What do you think that you should do.
What have you tried so far to learn for yourself.
What were the results that have caused your concerns.
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Mon Jan 25, 2010 4:16 pm
Reply with quote

expat..

as per my understanding below override in job should work. its too dificult to compile our own pgm in our project as it causes concern hence i did not try it but need to know for my own understanding

Job
EXEC prcA
STEP3.INFILE DD DSN = DUMMY
DD DSN = XYZ.JF2
DD DSN = DUMMY
....

Please correct me if i am wrong.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jan 25, 2010 5:21 pm
Reply with quote

To perform a simple test, you do not have to compile a program, pass go, or collect £200.

All you need is a simple instream PROC using IEBGENER with 3 simple input files, and then you can very easily test and verify the results of what you have coded.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Mon Jan 25, 2010 5:55 pm
Reply with quote

There is a manuals link on this page. Click it, find the JCL Language Reference manual, and read section 5.2.1.2 to find out how concatenated overrides work (hint: your code won't do what you think it will).
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 Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts panel creation question TSO/ISPF 12
No new posts Sort w/OUTREC Question DFSORT/ICETOOL 2
Search our Forums:

Back to Top