Page 1 of 1

CFF occurs depending on

Posted: Tue Jul 27, 2004 7:11 am
by denzilsyb
hi guys

We are reading a variable length file in EBCDIC format. The record has an 'occurs depending on' field, that goes down any number of levels, or none. i.e. We dont have a maximum amount of occurs defined. The original code is from SAS, and we are trying to rewrite this into a CFD that DS can understand.

any suggestions on how to take on this monster?

dnzl

Posted: Fri Jul 30, 2004 6:29 am
by mleroux
Howzit Denzil

I see in the readme for 7.5 that Enterprise Edition supports your fancy OCCURS DEPENDING ON CFF's...

Code: Select all

Enterprise Edition
~~~~~~~~~~~~~~~~~~

Complex Flat File Stage
-----------------------
A new Parallel Complex Flat File stage has been added to read or write
files that contain complex structures (for example groups, arrays,
redefines, occurs depending on, etc.). Arrays from complex sources can
be passed as-is or optionally flattened or normalized.

Posted: Fri Jul 30, 2004 7:40 am
by denzilsyb
Hi morne

The server job CFF also does this, except that you need to specify for obvious reasons the maximum occurs in an 'occurs dep. on' field. else, if you have int(4) as your occurs defined field there is a possible 9999 occurs if the maximum is not defined.

When we eventually start developing on the mainframe jobs, i hope that this will be resolved.

good to see you are on the forum!