View previous topic :: View next topic
|
Author |
Message |
maruniral
New User
Joined: 11 Sep 2007 Posts: 12 Location: India
|
|
|
|
I am using an Internal SORT in COBOL and i want to use the O/p of the Sort as an input file in the same COBOL code. Can someone please let me know how can i achieve this. |
|
Back to top |
|
|
maruniral
New User
Joined: 11 Sep 2007 Posts: 12 Location: India
|
|
|
|
Also wanted to know if i can use an O/p created in the cobol as an input file in internal Sort. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Maruniral,
Code: |
i want to use the O/p of the Sort as an input file in the same COBOL code. |
(1) Mode should be I-O.
(2) Use DISP=MOD in the JCL.
Quote: |
Also wanted to know if i can use an O/p created in the cobol as an input file in internal Sort. |
Same rule applies here also.
Im assuming you do file maintenance (either explicit or implicit) at the job start. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Your requirement can be solved using "input procedure" and/or "output procedure". These are usually better choices than "using" and "giving" anyway. |
|
Back to top |
|
|
|