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

s000 error in sort in cobol (internal sort )


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 1436
Location: Bangalore,India

PostPosted: Mon Dec 10, 2007 12:02 pm
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: 275
Location: Bang,iflex

PostPosted: Mon Dec 10, 2007 12:12 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Error when install DB2 DB2 2
Search our Forums:

Back to Top