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

Sign trailing separate field declaration in Easytrieve??


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kalyan.v

New User


Joined: 04 Feb 2008
Posts: 65
Location: Hyd

PostPosted: Thu Jun 16, 2011 3:45 pm
Reply with quote

Hello,

I have a variable defined in easytrieve like this.
Ezt declaration:

I-CASH 1 16 N 2

COBOL equalent declaration:
I-CASH PIC S9(13)V9(2) SIGN IS TRAILING SEPARATE

Value :
Code:

----+----1----+-
000000000038330+


When i am performing computations on this field i am getting SOC7 abend.
Please let me know whether the field declaration is correct or not.
If not let me know the correct declaration.

Thanks,
Kalyan.[/code]
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


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

PostPosted: Thu Jun 16, 2011 4:20 pm
Reply with quote

Check your manual, but I don't think you can do this directly in Easytrieve Plus.

I would define the sign-byte (as an A), check that it is + or - (and user-abend if not) and if -, do field = 0 - field. Have previously done a small macro, so that it self-documents.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top