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
 

 

s000 error in sort in cobol (internal sort )

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

New User


Joined: 10 Jun 2007
Posts: 6
Location: pune

PostPosted: Mon Dec 10, 2007 10:53 am    Post subject: s000 error in sort in cobol (internal sort )
Reply with quote

Code:

IDENTIFICATION DIVISION.                                         
PROGRAM-ID. CLI.                                                 
ENVIRONMENT DIVISION.                                           
INPUT-OUTPUT SECTION.                                           
FILE-CONTROL.                                                   
      SELECT INFILE ASSIGN TO DD1.                               
        ORGANIZATION IS SEQUENTIAL                                 
        ACCESS MODE IS SEQUENTIAL.                                 
      SELECT OUTFILE ASSIGN TO DD2.                             
        ORGANIZATION IS SEQUENTIAL                                 
        ACCESS MODE IS SEQUENTIAL.                                 
      SELECT SORTWK ASSIGN TO DD3.                               
        ORGANIZATION IS SEQUENTIAL                                 
        ACCESS MODE IS SEQUENTIAL.                                 
DATA DIVISION.                                                   
FILE SECTION.                                                   
 FD INFILE.                                                       
 01 INREC.                                                       
     02 S-NO PIC 99.                                             
     02 S-NAME PIC A(5).                                         
     02 S-MARK PIC 999.                                           
     02 FILLER PIC X(70).                                         
 FD OUTFILE.                                                     
 01 OUTREC.                                                       
     02 S-NO PIC 99.                                             
     02 S-NAME PIC A(5).                                         
     02 S-MARK PIC 999.                                           
     02 FILLER PIC X(70).                                         
 SD SORTWK.                                                       
 01 SORTREC.                                                     
     02 S-NOW PIC 99.                                             
     02 S-NAME PIC A(5).                                         
     02 FILLER PIC X(70).                         
 PROCEDURE DIVISION.                             
 MAIN.                                           
     SORT SORTWK ON ASCENDING KEY S-NOW           
            USING INFILE GIVING OUTFILE.         
     STOP RUN.                                   



after compiling it gives maxcc = 0
but at runtime it gives s000.
what is problem ? .
it related with comelier option.
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Mon Dec 10, 2007 12:02 pm    Post subject:
Reply with quote

mahesh,

Post your spool messages for better understanding.
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 276
Location: Bang,iflex

PostPosted: Mon Dec 10, 2007 12:12 pm    Post subject:
Reply with quote

Hi Mahesh,

Check for the proper message in the SYSLOG or analyse the message printed by the Program.

For Quick refference, check out the manual in this forum about abends.
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


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