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
 
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

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