Page 1 of 1

schema

Posted: Tue May 17, 2005 7:27 am
by r
hi,
i have to extract the schema of all input and output files. is there some way i which i can do it at command line instead of searching for the files in the xml generated

Posted: Tue May 17, 2005 12:35 pm
by bcarlson
If you have exported the DSX to a file, you can pull the schemas from that. Open the DSX in an editor and search for the word schema. It should look something like this:

-schema record
{record_length=fixed, delim=none, ebcdic, native_endian, binary}
(
FIB_CDC_APPLICATION_ID:string[15];
FIB_CDC_PAGE_NUMBER:int32 {text, default=-99, width=5};

... etc.

)

I am sure there are probably other methods, but that's the first that comes to mind. We export the DSX file to keep in version control along with the rest of our code, so we always have a DSX file available. But not everyone does that.

HTH.
bcarlson