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
 
sort in cobol program.....

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

New User


Joined: 13 Mar 2005
Posts: 4
Location: pune

PostPosted: Wed Sep 21, 2005 6:32 pm    Post subject: sort in cobol program.....
Reply with quote

Hi,

I am using SORT verb in cobol pgm, as below

SORT WORKFILE ON ASCENDING KEY AGE2 USING INFILE
GIVING OUTFILE.

It will sucessfully compile after RUN, it will also give MAXCC=0.

But it not write anything in output(sorted) file.
It will display msg at TSO SDSF ST like below..

The SORT-RETURN special register was never referenced, but the current content indicated the sort or merge operation in program FILESRT on line number 42 was unsuccessful.

PLEASE GIVE SOME SOLUTION. IT'S URGENT
Back to top
View user's profile Send private message

msvb_mca

New User


Joined: 23 Sep 2005
Posts: 2

PostPosted: Fri Sep 23, 2005 2:19 pm    Post subject: Re: sort in cobol program.....
Reply with quote

Re: sort in cobol program.....
Back to top
View user's profile Send private message
ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Fri Sep 23, 2005 5:20 pm    Post subject: Re: sort in cobol program.....
Reply with quote

If you do not reference SORT-RETURN anywhere in your program, the COBOL run time, tests the return code. If the return code is 16, COBOL issues a run-time diagnostic message.

Guess you have declared the files in the SELECT statement. Make sure that the input file/output file must not be open when the SORT statement begins execution.

better check for the SORT-RETURN to know about the exact error....
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 Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 5 Sat Aug 19, 2017 2:33 pm

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