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
 

 

Writing DD stmt for sorting

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
nutan

New User


Joined: 27 Jan 2006
Posts: 26

PostPosted: Wed Feb 08, 2006 5:50 pm    Post subject: Writing DD stmt for sorting
Reply with quote

hi,
I am writing a COBOL program for sorting a file. In normal condition if we copy 1 file to other file then we use 2 DD stmt but in sorting we have to use 3 files . So what to do woth DD stmt ? Do we need to have one more dd stmt for sorting ? OR is there any other way to do this ?

Regards,
Nutan.
Back to top
View user's profile Send private message

ranjitbhingare

New User


Joined: 30 Nov 2005
Posts: 94
Location: PUNE

PostPosted: Thu Feb 09, 2006 11:10 am    Post subject: Re: Writing DD stmt for sorting
Reply with quote

Hi,

If you are using SORT in COBOL you will have to declare 3 files.
INFILE, OUTFILE and WORKFILE.
There should be FD entries for INFILE and OUTFILE and SD entry for WORKFILE.
As you will be using 3 files the corresponding DD statements should be there in your JCL.

Correct me if I am wrong.....

Ranjit...
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 Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Efficient sorting chandracdac DFSORT/ICETOOL 5 Sat Oct 22, 2016 3:23 am
No new posts Stripping and Sorting of VB file G SRINIVASA RAO SYNCSORT 5 Wed Sep 14, 2016 1:34 pm
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts DFSORT sorting only specific records akodakka DFSORT/ICETOOL 4 Thu Aug 04, 2016 11:24 am


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