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 SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

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