Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Sign trailing separate field declaration in Easytrieve??

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Sign trailing separate field declaration in Easytrieve??
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7255

PostPosted: Thu Jun 16, 2011 4:20 pm    Post subject: Reply to: Sign trailing separate field declaration in Easytr
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us