Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
sanjayis01
Warnings : 1

New User

Joined: 13 Jun 2007
Posts: 55
Location: banaglore

 Posted: Sat May 24, 2008 11:31 am    Post subject: How to Declare COMP Variables in EASYTRIEVE 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 ?

CICS Guy

Senior Member

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

Posted: Sat May 24, 2008 5:55 pm    Post subject:

 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.
sanjayis01
Warnings : 1

New User

Joined: 13 Jun 2007
Posts: 55
Location: banaglore

 Posted: Sat May 24, 2008 8:22 pm    Post subject: Thanks A lot
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us