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
 
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 Sorting on text - but in non-alphabet... Roy Ware SYNCSORT 5 Wed Aug 23, 2017 9:15 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm

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