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

SOC7 abend- How to resolve it


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Apr 30, 2014 10:21 pm
Reply with quote

Thanks for letting us know.

If you have not corrected where you identify non-numeric but still allow the field to be used later, you may have other problems with this. Test for numeric for user-entered data, excellent. Identify it as not numeric, then still use it, not so good.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu May 01, 2014 10:21 pm
Reply with quote

In your DISPLAYs, add delimiters, just like this:
Code:
    DISPLAY 'COST-CHG-PERCENT=<' COST-CHG-PERCENT '>'
then when you see
Code:
COST-CHG-PERCENT=<12   >
you can immediately see that your number contains non-numeric characters (a.k.a. "junk")
It's as easy as it gets.
icon_smile.gif
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu May 01, 2014 11:23 pm
Reply with quote

sandeep kumar302 wrote:
Hi Marso,
Oh i am sorry, actually later i changed it while testing. Anyways it is not working with both the formats.

The content of the ICCHGPCT file is -

Code:
Command ===>
=COLS> ----+----1
****** **********
000001  12


afte the 3 column, everything is empty and the Record length is 80( i have not pasted full LRECL here)


Code'd
Most likely the editor filled with SPACES.
When you've tried the COMP-3 option, did you enter the hex code with the editor?
If yes, you would have seen that the last zeroes are important, the line starting with X'4001200F', as stated here:
Code:
 01  IN-COST-CHG-FILE-RECORD.
     05  FILLER             PIC X(01).
     05  COST-CHG-PERCENT   PIC 9(3)V99 COMP-3.
     05  FILLER             PIC X(74).
All the rest should stay X'40' as in SPACES.

About that:
sandeep kumar302 wrote:
the Record length is 80( i have not pasted full LRECL here)
It takes less words to give the plain values:
simply wrote:
LRECL(80) RECFM(FB)
If the block size is relevant to the question, give it also: BLKSIZE(3120) for example, it's still shorter and it gives a better picture.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri May 02, 2014 3:38 am
Reply with quote

Marso,

IN-COST-CHG-FILE-RECORD is 78-Bytes.

The 74-Byte FILLER at the end needs to be PIC X(76) for an 80-Byte LRECL.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Fri May 02, 2014 11:31 am
Reply with quote

My bad, added the COMP-3 word but forgot to recalculate the FILLER size.
icon_redface.gif
It was late and I forgot my compiler at work.
icon_confused.gif
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 ISAM and abend S03B JCL & VSAM 10
No new posts Need help to resolve a hard edit COBOL Programming 8
This topic is locked: you cannot edit posts or make replies. Need help to resolve a hard edit COBOL Programming 4
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts WER999A - UNSUCCESSFUL SORT 8ED U Ab... SYNCSORT 5
Search our Forums:

Back to Top