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

Using the o/p of internal Sort as an input file in same cobo


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maruniral

New User


Joined: 11 Sep 2007
Posts: 12
Location: India

PostPosted: Thu Oct 04, 2007 4:28 pm
Reply with quote

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
View user's profile Send private message
maruniral

New User


Joined: 11 Sep 2007
Posts: 12
Location: India

PostPosted: Thu Oct 04, 2007 4:30 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Oct 04, 2007 4:33 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Oct 04, 2007 7:24 pm
Reply with quote

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
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top