Thu Oct 21, 2021 5:31 am
Login Register Lost Password? Contact Us


record and dataset definition, dataset has to be exported

Comments and questions related to the Enterprise Control Language

Mon Sep 26, 2011 4:03 pm Change Time Zone

hello

i have the record definition and dataset definition in the file below. i want only the dataset definition to be exported and not the record definition. i believe that the coding part is all correct. pls correct me if i am wrong anywhere. thanks.

Layout_Persons :=RECORD
UNSIGNED8 ID;
STRING15 FirstName;
STRING25 LastName;
STRING15 MiddleName;
STRING2 NameSuffix;
STRING8 FileDate;
UNSIGNED2 BureauCode;
STRING1 MaritalStatus;
STRING1 Gender;
UNSIGNED1 DependantCount;
STRING8 BirthDate;
STRING42 StreetAddress ;
STRING20 City;
STRING2 State;
STRING15 ZipCode;
END;

EXPORT File_Layout_Persons :=DATASET('PERSONS',Layout_Persons,THOR);
Last edited by abi.abishek26 on Mon Sep 26, 2011 6:51 pm, edited 4 times in total.
abi.abishek26
 
Posts: 2
Joined: Sun Sep 25, 2011 12:47 am

Mon Sep 26, 2011 4:22 pm Change Time Zone

Not seeing any code attached...
aintnomyth
 
Posts: 86
Joined: Wed Jul 13, 2011 7:40 pm

Mon Sep 26, 2011 6:28 pm Change Time Zone

You need the 'dataset' on your dataset definition; other than that the exporting works as you wish. Only those labels explicitely EXPORTed are visible outside of a module.
dabayliss
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 109
Joined: Fri Apr 29, 2011 1:35 pm

Mon Sep 26, 2011 6:42 pm Change Time Zone

I TRIED WITH THE DATASET KEYWORD , WHILE COPYIN HERE I SOMEHOW MISSED IT . SO I THINK THAT WAS NOT THE REASON FOR THE ERROR THAT I GOT WHILE TRYING TO DO SO
abi.abishek26
 
Posts: 2
Joined: Sun Sep 25, 2011 12:47 am

Mon Sep 26, 2011 7:02 pm Change Time Zone

If you can post EXACTLY what you were trying to compile - and the EXACT error message we may be able to help.

David
dabayliss
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 109
Joined: Fri Apr 29, 2011 1:35 pm


Return to ECL

Who is online

Users browsing this forum: No registered users and 1 guest

cron