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

Writing DD stmt for sorting


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
No new posts Two input files & writing counter... DFSORT/ICETOOL 12
No new posts AI writing DFSORT, REXX codes.. All Other Mainframe Topics 3
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts writing into VSAM indexed tabl in PL1... PL/I & Assembler 8
Search our Forums:

Back to Top