MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Occurs Depending On : Equivalent in Eztrieve

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
deepeshk79
Beginner


Joined: 20 Jun 2003
Posts: 112
Topics: 48
Location: Bangalore

PostPosted: Tue Aug 03, 2004 11:56 am    Post subject: Occurs Depending On : Equivalent in Eztrieve Reply with quote

Hi All,

Is there anything equivalent to "Occurs Depending On" Clause of Cobol in Ezetrieve...???

I have a VB file in which the Account Number Position keeps changing from one record to another as it is defined thru the Occurs Depending Clause of Cobol. How to handle this file in Ezetrieve??


Thanks,
Deepesh
Back to top
View user's profile Send private message AIM Address
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Aug 03, 2004 12:08 pm    Post subject: Reply with quote

Deepesh,

Post your cobol definition

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
deepeshk79
Beginner


Joined: 20 Jun 2003
Posts: 112
Topics: 48
Location: Bangalore

PostPosted: Wed Aug 04, 2004 7:05 am    Post subject: Reply with quote

Hi Kolusu,

The cobol definition is a very big copybook. Anyhow do you have any utility which can convert a Cobol Copybook to an Ezetrieve one??

Thanks,
Deepesh
Back to top
View user's profile Send private message AIM Address
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Aug 04, 2004 8:38 am    Post subject: Reply with quote

Deepesh,

Quote:

The cobol definition is a very big copybook. Anyhow do you have any utility which can convert a Cobol Copybook to an Ezetrieve one??


The CBLCNVRT Macro routine converts COBOL file and field definitions to their Easytrieve Equivalent. CBLCNVRT determines the file characteristics, the field name, and the attributes for each COBOL field. The converted file and field definitions are listed in a report and written to a file.

However I just ran the job with a sample definition of OCCURS DEPENDING ON and I got the following message.
Code:

***** CBL246 - 'OCCURS DEPENDING ON' NOT FULLY SUPPORTED   
*PLEASE SUPPLY 'OCCURS DEPENDING ON' FIELDS WITH INDEXES   


I tried converting the following
Code:

01   W-PARTS-TABLE.                                       
    05  W-PARTS-TBL     OCCURS 0 TO 30000 TIMES           
                        DEPENDING ON W-COUNT-MAX
                        INDEXED BY W-PARTS-NDX.           
        10 W-PARTS-TBL-REC      PIC X(10) VALUE SPACES.   



The equivalent easytrieve conversion is as follows
Code:

W-PARTS-TABLE   W  4  N  OCCURS    75000 
  W-PARTS-TBL  W-PARTS-TABLE          10  A  OCCURS 30000
    W-PARTS-TBL-REC  W-PARTS-TBL      10  A 


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group