Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
[Moved]How to Declare COMP Variables in EASYTRIEVE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: How to Declare COMP Variables in EASYTRIEVE
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: 2150
Location: At my coffee table

PostPosted: Sat May 24, 2008 5:55 pm    Post subject:
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    Post subject:
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    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 UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us