|
View previous topic :: View next topic
|
| Author |
Message |
sureshmurali Warnings : 1 New User
Joined: 25 Nov 2010 Posts: 70 Location: Sivakasi, India
|
|
|
|
Hi this is my code -
| Code: |
//STEP020 EXEC PGM=SORT
//SORTIN DD DSN=AA31.G9330.OTHR2011.SAMPLE1,DISP=SHR
//SORTOUT DD DSN=SAA31.AE5UIJ.SAM1,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
SUM FIELDS=(12,2,BI,15,3,BI)
/*
|
Input file - AA31.G9330.OTHR2011.SAMPLE1
Logical record length - 80
| Code: |
100SURESH101001230
200RAJESH202002460
100SURESH101001000
200RAJESH202001460
300RANGSH300500615
400RAMESH |
My job ended with abend.
| Code: |
ICE805I 1 JOBNAME: AAAAAAJ1 , STEPNAME: STEP020
ICE802I 0 BLOCKSET TECHNIQUE IN CONTROL
ICE000I J - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R12 - 04:53
SORT FIELDS=(1,3,CH,A)
SUM FIELDS=(12,2,BI,15,3,BI)
ICE201I J RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE112I J EQUALS NOT USED WITH SUM
ICE109A J INVALID POSITION OR LENGTH IN SUM FIELD - REASON CODE IS 01
ICE052I J END OF DFSORT |
Can some one help me to identify this issue ? This job is working fine for
| Code: |
| SUM FIELDS=(12,2,ZD,15,3,ZD) |
I am aware that BI cannot be displayed. But can't we do SUM them also ? |
|
| Back to top |
|
 |
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Did you try looking up the ICE109A message, even if not able to get it from the text of the message?
If your SUM works with PD fields, why on earth would it suddenly "work" with BI any way? |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Suresh K,
As documented here:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA60/3.20?DT=20110608113434
the length for a BI SUM field must be 2, 4 or 8. You are using 3 for the length which is invalid.
The values in your record appear to be ZD values, not BI values, so I don't know why you're trying to use BI to sum them.
If you describe what you're actually trying to do, I could help you.
Please show an example of the records in each input file (relevant fields only) and what you expect for output (in hex, if appropriate). Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input file. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|