View previous topic :: View next topic |
Author |
Message |
Vinodch Beginner
Joined: 23 Dec 2002 Posts: 80 Topics: 32 Location: Chennai, India
|
Posted: Mon Nov 28, 2005 2:58 am Post subject: Problem writing the O/P file |
|
|
O/P file defined in the SELECT STATEMENT of the COBOL program but not defined in the JCL - respective DD statement is not mentioned in the file but still in the program the WRITE operation is performed successfully. How this is possible ? _________________ Thanks,
Vinod. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Mon Nov 28, 2005 5:37 am Post subject: |
|
|
Vinodch,
Your Write was successful because of the Language environment parameter CBLQDA . CBLQDA(ON) is the setting that dynamically allocates with DISP=(NEW,DELETE,DELETE) file when an output DD name is opened but missing from the TIOT.
Check this link for a detailed explanation.
http://www.mvsforums.com/helpboards/viewtopic.php?p=19998#19998
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu
Last edited by kolusu on Mon Nov 28, 2005 8:03 am; edited 1 time in total |
|
Back to top |
|
|
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Mon Nov 28, 2005 12:53 pm Post subject: |
|
|
Vinod,
When you are saying that the WRITE is successful, do you mean that, the record is written AND the output file is also created ?
If the file is created, then I would guess that there is a program specific to your site that is doing dynamic allocation. The LE dynamic allocation will not come in affect here as the DISP=(NEW,DELETE,DELETE) (as mentioned by Kolusu). _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
|
Vinodch Beginner
Joined: 23 Dec 2002 Posts: 80 Topics: 32 Location: Chennai, India
|
Posted: Fri Dec 02, 2005 2:43 am Post subject: |
|
|
Yes our LE environment has CBLQDA(ON) that' s the reason the write was successful. I tried the job with CBLQDA(OFF) the job abended.
Thanks Kolusu & Cogito-Ergo-Sum.
I could also able to list down the various default option for the LE - Are there any links that explains what for the each option stands for ?
Any Help Appreciated !. _________________ Thanks,
Vinod. |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
|
Back to top |
|
|
|
|