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 All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts Substitution of JCL variables CLIST & REXX 10
No new posts Overwriting SSN Digits in Easytrieve ... CA Products 0
No new posts Repeat n times by substuting SEQNUM i... DFSORT/ICETOOL 2
No new posts Preserve changes to ISPF Panel Variables TSO/ISPF 5
Search our Forums:


Back to Top