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

VARCHAR in Easytrieve


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

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Wed Oct 08, 2008 4:08 pm
Reply with quote

Is there any equivalant data type in Easytrieve for VARCHAR DB2? Can we have VARCHAR equivalant declaration in Easytieve?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Oct 08, 2008 8:57 pm
Reply with quote

Hello,

In older releases of Easytrieve, i believe you could accomplish the same thing using an Alpha field VARYING.

What release are you using?
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Mon Oct 13, 2008 12:19 pm
Reply with quote

Dick,

Thanks for the reply. I don't know exactly which release we are using. And nobody in our team know on this. How can we find out the release number? I referred run JCL's log but couldn't find any information.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Mon Oct 13, 2008 1:10 pm
Reply with quote

Hello,

When you run an Easytrieve job, the version is printed at/near the top of the page that shows the code.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Mon Oct 13, 2008 2:10 pm
Reply with quote

Dick,

We are using release 6.4.

I could find the following statement in the Easytrieve job.

CA-EASYTRIEVE PLUS-6.4 0311
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Mon Oct 13, 2008 2:27 pm
Reply with quote

Hello,

With that release, i believe defining the field as alpha varying is the closest you can get.

Found this in the 6.4 doc - maybe it will help:
Code:

EMPNAME - CHAR(20) (NOT NULL)
WORKDEPT - DECIMAL(3,0) (NOT NULL)
EMPPHONE - DECIMAL(5,0) (NULL)
DEPTNAME - VARCHAR(20) (NOT NULL)
DEPTNUMBER - DECIMAL(3,0) (NOT NULL)

The following example shows working storage field definitions for the sample
tables in the previous example:
DEFINE EMPNAME W 20 A
DEFINE WORKDEPT W 2 P O
DEFINE EMPPHONE W 3 P O
DEFINE DEPTNAME W 22 A VARYING
DEFINE DEPTNUMBER W 2 P O

Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Mon Oct 13, 2008 2:46 pm
Reply with quote

Dick,

Thanks for the detailed explanation. I have to use VARCHAR field in the file structure.

Can we declare VARCHAR as shown below? (Field starts at 31st colomn with 30 byte length)

Code:

MIDL-NAME          31  30 A VARYING


Please provide me a link or document which can explain the above if available.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Mon Oct 13, 2008 2:55 pm
Reply with quote

Hello,

Quote:
Can we declare VARCHAR as shown below?
I don't know - it shouldn't cause any damage to try it icon_wink.gif

Quote:
Please provide me a link or document which can explain the above if available.
The only link i know is via CA support. If your organization is licensed to use the product, all of the material is available for free.
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 Converting VARCHAR to XML DB2 1
No new posts Overwriting SSN Digits in Easytrieve ... CA Products 0
No new posts Count the number of characters in a f... CA Products 1
No new posts File matching functionality in Easytr... DFSORT/ICETOOL 14
Search our Forums:


Back to Top