How to override a specific DDNAME/SYSIN in PROC from a JCL?

jcl interview questions

Moderator: Moderator Group

Post Reply
User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

How to override a specific DDNAME/SYSIN in PROC from a JCL?

Post by Krishna » Sun Jul 19, 2009 2:16 pm

How do you override a specific DDNAME/SYSIN in PROC from a JCL?

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Sun Jul 19, 2009 2:16 pm

//<stepname.dd> DSN=...

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Tue Jul 21, 2009 10:56 pm

Other intresting question can be -- what if multiple DSNs are concatenated to a single DD name, how to override some DSN in that concatenation then?
Regards,
Anuj

User avatar
mfrmfem
Member
Posts: 3
Joined: Fri Sep 30, 2011 9:41 am

Post by mfrmfem » Fri Sep 30, 2011 11:40 am

Anuj Dhawan wrote:Other intresting question can be -- what if multiple DSNs are concatenated to a single DD name, how to override some DSN in that concatenation then?
Pretty Old Post....I guess the order of the dataset does matter. Correct me if its wrong..

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Fri Sep 30, 2011 2:41 pm

It depends.

When you concatenate the DSNs, for a given DD (say DD1), they are stacked one-after-other in the oreder they are placed in JCL. If the program pointing to the DD1 DD does not bother about how they are concatenated, yes you are correct else you might get an error; for example if a program is written to handle some keys in ascending order but the concatenation distrubs this ascending order, so it won't work.
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others