Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Using the o/p of internal Sort as an input file in same cobo

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Using the o/p of internal Sort as an input file in same cobo
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    Post subject: Reply to: Using the o/p of internal Sort as an input file in
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: 1439
Location: Bangalore,India

PostPosted: Thu Oct 04, 2007 4:33 pm    Post subject:
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

Site Director


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

PostPosted: Thu Oct 04, 2007 7:24 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us