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

comp variable's lenth in easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Madhusmita Patnaik

New User


Joined: 18 Dec 2006
Posts: 14
Location: bangalore

PostPosted: Fri Feb 09, 2007 5:33 pm
Reply with quote

i have a comp variable in cobol. if i try to code this in easytrieve what is the length declaration of the variable in easytrieve.
Back to top
View user's profile Send private message
manihcl85
Warnings : 1

New User


Joined: 11 Jan 2007
Posts: 52
Location: chennai

PostPosted: Fri Feb 09, 2007 5:55 pm
Reply with quote

Hi,

U can use 'N' - Numeric
or 'P' - Packed accoring to ur requirment.

Regards,
Mani
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Feb 09, 2007 6:03 pm
Reply with quote

Take your pick:
N?zoned decimal ? the field contains digits 0 through 9 in external decimal form.
P?packed decimal ? the field contains numbers which meet IBM's definition of internal packed decimal.
B?binary ? the field contains binary data.
A?alphanumeric ? use when none of the numeric data types apply to the associated field.
Back to top
View user's profile Send private message
Madhusmita Patnaik

New User


Joined: 18 Dec 2006
Posts: 14
Location: bangalore

PostPosted: Tue Feb 13, 2007 3:01 pm
Reply with quote

but how can i represent a small int in easytrieve?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Feb 13, 2007 3:05 pm
Reply with quote

Madhusmita Patnaik wrote:
but how can i represent a small int in easytrieve?
How do you define "a small int" in COBOL?
Have you looked at the EZT manual?
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
Search our Forums:

Back to Top