Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us