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

[Moved]How to Declare COMP Variables in EASYTRIEVE


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sanjayis01
Warnings : 1

New User


Joined: 13 Jun 2007
Posts: 55
Location: banaglore

PostPosted: Sat May 24, 2008 11:31 am
Reply with quote

Hi

How we can declare COMP variable is easzytrieve

Suppose for COBOL declartion we have 05 NEW-VARIABLE PIC X(5)

in EASYTREIEV WILL DEFINE IT IS NEW-VARIABLE 1 5 A

so in the same way how we can declare

15 ABC-TEXT PIC S9(07) COMP-3.
15 ABC-TEXT2 PIC S9(04) COMP.

Please let me know how we can do this ?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sat May 24, 2008 5:55 pm
Reply with quote

CA-Easytrieve/Plus Reference Guide wrote:
{A} — alphanumeric—use when none of the numeric data types apply to the associated field.
{N}—zoned decimal — the field contains digits 0 through 9 in external decimal form (that is, 0 = X'F0').
{P}—packed decimal — the field contains numbers which meet IBM's definition of internal packed decimal. For instance, the two-byte packed field containing 123 looks like X'123F'.
{B}—binary — the fields contain binary data. In a quantitative binary field (a field with zero (0) or more decimal places specified), the high order bit is the sign bit. In a non-quantitative binary field (a field with no decimal place specification), the high order bit is a binary digit.
Back to top
View user's profile Send private message
sanjayis01
Warnings : 1

New User


Joined: 13 Jun 2007
Posts: 55
Location: banaglore

PostPosted: Sat May 24, 2008 8:22 pm
Reply with quote

Thanks A lot
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 PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Count the number of characters in a f... CA Products 1
No new posts JCL with variables JCL & VSAM 1
Search our Forums:

Back to Top