Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

VARCHAR in Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
ksk

Active User


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

PostPosted: Wed Oct 08, 2008 4:08 pm    Post subject: VARCHAR in Easytrieve
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

Site Director


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

PostPosted: Wed Oct 08, 2008 8:57 pm    Post subject:
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: 356
Location: New York

PostPosted: Mon Oct 13, 2008 12:19 pm    Post subject:
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

Site Director


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

PostPosted: Mon Oct 13, 2008 1:10 pm    Post subject:
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: 356
Location: New York

PostPosted: Mon Oct 13, 2008 2:10 pm    Post subject:
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

Site Director


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

PostPosted: Mon Oct 13, 2008 2:27 pm    Post subject:
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: 356
Location: New York

PostPosted: Mon Oct 13, 2008 2:46 pm    Post subject:
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

Site Director


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

PostPosted: Mon Oct 13, 2008 2:55 pm    Post subject:
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    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 Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm
No new posts Only text from varchar Seppe DB2 8 Thu Apr 21, 2016 10:42 pm
No new posts Query regarding Easytrieve program shanudarling All Other Mainframe Topics 2 Wed Jan 06, 2016 5:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us