Method to read complex flat file using sequential file?

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ahmedwaseem2000
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 15, 2006 12:23 pm

Method to read complex flat file using sequential file?

Post by ahmedwaseem2000 »

Hi,

How do we read complex flat file using sequential file stage? I would want to generalize the job so that I can pass the variable of the schema file to the sequential file and run the job or is it possible to pass the cobol copy book at the run time as parameter and run the job?????
BMSK
Participant
Posts: 41
Joined: Wed Feb 06, 2008 7:00 am
Location: Bangalore

Re: Method to read complex flat file using sequential file?

Post by BMSK »

Are reading data which file?

wheter compelx or Sequential stage.
ahmedwaseem2000
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 15, 2006 12:23 pm

Post by ahmedwaseem2000 »

I am trying to generalise the metadata definition with the help of shcema files to read complex flat files using sequential file stage
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If you are asking if the Schema File property in the Sequence File stage can be parameterized, the answer is yes. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The definition of what a "complex" file contains is very loose. Many, if not most, COBOL structures can be read in sequential file stages. The CFF stages makes a lot of things easier to reqalize and has support for such things as "OCCURS DEPENDING ON" which the sequential file stage cannot interpret correctly.
ahmedwaseem2000
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 15, 2006 12:23 pm

Post by ahmedwaseem2000 »

Thanks for the replies. well I just wanted to know if there is a possibility to use schema file in the complex flat file stage????
ahmedwaseem2000
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 15, 2006 12:23 pm

Post by ahmedwaseem2000 »

I guess I wasn't clear enough with my previous post. I meant the way we pass the schema file name during the runtime in sequential file can we do that in complex flat file to pass the cobol copy book name to the job as parameter at run time?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or people don't know or don't feel like answering.

Does the CFF stage have a Schema File property? If so, have you tried parameterizing it?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ahmedwaseem2000
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 15, 2006 12:23 pm

Post by ahmedwaseem2000 »

I couldn't find it. so, that means that we can use it???
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If you actually meant "can't" then it seems I would agree.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ahmedwaseem2000
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 15, 2006 12:23 pm

Post by ahmedwaseem2000 »

is there an alternate method to achieve this? like being able to read the file using sequential file stage........
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Probably... again, it really comes down to what you mean by "complex".
-craig

"You can never have too many knives" -- Logan Nine Fingers
ahmedwaseem2000
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 15, 2006 12:23 pm

Post by ahmedwaseem2000 »

the file has got binary data with ebcidic character set
Post Reply