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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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