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

S179 abend in SORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vinodc

New User


Joined: 01 Dec 2005
Posts: 33
Location: Prague

PostPosted: Mon Apr 10, 2006 3:28 am
Reply with quote

Hi,

Can someone please help me understand the cause and way to solve of S179 abend while using SORT.

I am sorting a file into another with parameter SORT FIELDS=COPY. The input file is opened in SHR mode and output file in (MOD,CATLG,CATLG) mode.

I tried referring manual but couldnt quite get the exact root cause.

Thanks in advance.

Vinod Chawda
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Apr 10, 2006 11:32 am
Reply with quote

Vinod,

Description of S179 says "While processing an I/O request, the system found an error in the I/O parameters."

You may want to put ur jcl step & error log to get more accurate results.

Regards,
Priyesh.
Back to top
View user's profile Send private message
prakash271082

New User


Joined: 09 Sep 2005
Posts: 53

PostPosted: Mon Apr 10, 2006 11:44 am
Reply with quote

Hi,

Please throw some more details as requested by Global Moderator which would help our fellow members of this forum to help you out.
Back to top
View user's profile Send private message
Vinodc

New User


Joined: 01 Dec 2005
Posts: 33
Location: Prague

PostPosted: Mon Apr 10, 2006 1:34 pm
Reply with quote

Hi,

Below is the step which is giving S179 abend. The file in SORTIN and SORTOUT are of the same format (VSAM KSDS).

This step is in a production job, and it is working fine everyday except one day on which it abended with S179. The only difference I see on that day was the SORTIN contained around 6500 recs (on an average it contains 2000 records). Is this the cause?


Code:
//********************************************************************
.
.
//MERFILE  EXEC PGM=SORT,COND=(0,NE)                                 
//*                                                                   
//SORTIN   DD  DSN=&VHLQ..FILENAME1, 
//             DISP=SHR                                               
//*                                                                   
//SORTOUT  DD  DSN=&VHLQ..MASTER.FILE,                               
//             DISP=(MOD,CATLG,CATLG)                                 
//*                                                                   
//SYSIN    DD  *
  SORT FIELDS=COPY                         
  INCLUDE COND=(8,12,CH,NE,C'DUMMY-HEADER')
/*
//*                                                                   


Thanks in advance.

Vinod Chawda
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Apr 10, 2006 1:54 pm
Reply with quote

One point to be noted is DISP for SORTOUT.
DISP=(MOD,CATLG,CATLG) shouldn't be defined for a TEMP dataset. It should be DISP=(MOD,PASS)... But I hope that is assumed automatically.

If you are having this problem only the day when I/p have number of recs more than expected limit, then you 'll also have to search for more meaningful error messages in the Log.

Regards,
Priyesh.
Back to top
View user's profile Send private message
Vinodc

New User


Joined: 01 Dec 2005
Posts: 33
Location: Prague

PostPosted: Mon Apr 10, 2006 2:37 pm
Reply with quote

Thanks Priyesh for the reply.

SORTOUT is not a temporary dataset, instead it is a Master file. I kept MOD disposition because I want to merge the SORTIN in the master file (adding the SORTIN records to the existing file).

Also I checked the hisotry of the job, and found that there were 4-5 instances in last 90 days where SORTIN contained more records than that days 6500 records and it didnt abended on those days.

Below is the message generated by SORT.

Code:
ICE143I 0 BLOCKSET     COPY  TECHNIQUE SELECTED                                 
ICE000I 1 - CONTROL STATEMENTS FOR 5740-SM1, DFSORT REL 14.0 - 04:26 ON SAT APR  08, 2006 -
                                                                               
            SORT FIELDS=COPY                                                   
            INCLUDE COND=(8,12,CH,NE,C'DUMMY-HEADER')                           
ICE201I 0 RECORD TYPE IS V - DATA STARTS IN POSITION 5                         
ICE193I 0 ICEAM1 ENVIRONMENT IN EFFECT - ICEAM1 INSTALLATION MODULE SELECTED   
ICE088I 0 PCZSKBN2.SKBN002 .REPAMHS , INPUT LRECL = 429, BLKSIZE = 512, TYPE = V
ICE093I 0 MAIN STORAGE = (MAX,4194304,4194304)                                 
ICE156I 0 MAIN STORAGE ABOVE 16MB = (4136944,4136944)                           
ICE127I 0 OPTIONS: OVFLO=RC0 ,PAD=RC0 ,TRUNC=RC0  ,SPANINC=RC16,VLSCMP=N,SZERO=Y,RESET=Y,VSAMEMT=Y,DYNSPC=32
ICE128I 0 OPTIONS: SIZE=4194304,MAXLIM=1048576,MINLIM=450560,EQUALS=N,LIST=Y,ERET=RC16 ,MSGDDN=SORTMSG
ICE129I 0 OPTIONS: VIO=N,RESDNT=ALL ,SMF=NO   ,WRKSEC=Y,OUTSEC=Y,VERIFY=N,CHALT=N,DYNALOC=N             ,ABCODE=MSG
ICE130I 0 OPTIONS: RESALL=4096,RESINV=0,SVC=109 ,CHECK=Y,WRKREL=Y,OUTREL=Y,CKPT==N,STIMER=Y,COBEXIT=COB1
ICE131I 0 OPTIONS: TMAXLIM=4194304,ARESALL=0,ARESINV=0,OVERRGN=65536,CINV=Y,CFW==Y,DSA=0
ICE132I 0 OPTIONS: VLSHRT=N,ZDPRINT=N,IEXIT=N,TEXIT=N,LISTX=N,EFS=NONE    ,EXITCK=S,PARMDDN=DFSPARM ,FSZEST=N
ICE133I 0 OPTIONS: HIPRMAX=OPTIMAL,DSPSIZE=0   ,ODMAXBF=0,SOLRF=Y,VLLONG=N,VSAMIO=N
ICE084I 1 VSAM ACCESS METHOD USED FOR SORTOUT                                   
ICE084I 1 VSAM ACCESS METHOD USED FOR SORTIN                                   
ICE185A 0 DFSORT TERMINATED WITH S179  ABEND DURING PHASE C 3


Thanks.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Apr 10, 2006 8:38 pm
Reply with quote

Here's a link to the information on S179:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/iea2h761/2.265?SHELF=&DT=20060125040840&CASE=

I don't see anything obvious. Maybe somebody else does. I'd suggest opening up a problem with IBM service so the appropriate doc can be collected and analyzed.
Back to top
View user's profile Send private message
Vinodc

New User


Joined: 01 Dec 2005
Posts: 33
Location: Prague

PostPosted: Mon Apr 10, 2006 9:42 pm
Reply with quote

Thanks Frank. But alas I couldnt get any clue from the link and other manuals i had.

Can you pls tell me how to raise a problem with IBM service. (I registered myself and tried to find, but again unlucky..)

Also I suspect my way to merge the file is wrong? Is whatever I am doing in the above step of JCL correct for merging a small transaction file into a similar layout but large file. Is there any alternate and better way to do this?

Thanks very much for your help.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Apr 10, 2006 11:03 pm
Reply with quote

Well, you say that your job works sometimes, but not other times, yet you don't seem to be able to pinpoint anything different between the times it works and the times it doesn't, so that's kind of confusing.

I'm also confused by your use of MOD and COPY for KSDSs. A KSDS has to be in order by the binary key defined for the cluster. So I would think that your SORTIN and SORTOUT data sets, if valid, would each already be sorted by the key and you should MERGE them on that key (using SORTIN01 and SORTIN02 for the input files and another file for SORTOUT) to keep them in order.

Your technique of trying to COPY with MOD a KSDS at the end of another KSDS doesn't seem valid to me as it would seem to result in the keys being out of order for the resulting SORTOUT KSDS unless the SORTIN KSDS keys just happen to all be greater than the original SORTOUT KSDS keys.
Back to top
View user's profile Send private message
GANAPATH

New User


Joined: 06 Mar 2006
Posts: 35

PostPosted: Mon Apr 10, 2006 11:44 pm
Reply with quote

Hi,

I had this problem before and one of the guy suggested me to add work area
and that worked fine or if u have declared work area then add 2 or more(wk3 and wk4) work area

//SORTWK01 DD UNIT=3390,SPACE=(CYL,(1,1))
//SORTWK02 DD UNIT=SYSDA,SPACE=(TRK,(10,10))
add this after ur sortout dd.


Thanks,
Ganapath
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Apr 10, 2006 11:52 pm
Reply with quote

Ganapath,

You must have had a different situation involving a sort application. SORTWKnn data sets are ONLY used for a sort application. Since Vinod is doing a copy application, the SORTKWnn data sets are NOT used and are irrelevant.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top