Copy book import into Complex flat file stage

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
skp
Premium Member
Premium Member
Posts: 135
Joined: Wed Dec 26, 2007 1:56 am
Location: India

Copy book import into Complex flat file stage

Post by skp »

Hi,

I have copy book in my Unix system and would like to import the specification into datastage using Complex file stage.

Kindly let me know the process.

Thanks
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Post by FranklinE »

Use the Table Definition import wizard. If you have specific problems with it, post the details.
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson

Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
skp
Premium Member
Premium Member
Posts: 135
Joined: Wed Dec 26, 2007 1:56 am
Location: India

Post by skp »

Hi,

While importing i am getting error message like,
"File contains no table definition(01 level record not found)"

Below is my cobol book,
01 ACCOUNT-IDENTIFICATION.
02 RECID PIC X(2).
02 COUNTID PIC S9(5).

Thanks.
suryadev
Premium Member
Premium Member
Posts: 211
Joined: Sun Jul 11, 2010 7:39 pm

Post by suryadev »

I received the same message earlier. see if you have more than one 01's in your copybook?
Thanks,
Surya
skp
Premium Member
Premium Member
Posts: 135
Joined: Wed Dec 26, 2007 1:56 am
Location: India

Post by skp »

No. I have only one 01. Below is the exact specification,

01 ACCOUNT-IDENTIFICATION.
02 RECID PIC X(2).
02 COUNTID PIC S9(5).
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Guessing they're not starting in the correct column number for COBOL metadata, which is what.... 7? 10?

(think I've lost most of those brain cells)
-craig

"You can never have too many knives" -- Logan Nine Fingers
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Post by FranklinE »

Here's the required formatting for Cobol FD files, set by Cobol compiler requirements:

Code: Select all

Pos 1-6 skipped for syntax check. May contain labels or line numbers.

Pos 7 must be blank for active lines, contain '*' for comment lines. No other characters permitted.

Pos 8 is the first position for each line.
We indent for each higher level number for ease of reading. It's not required.
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson

Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Post by FranklinE »

chulett wrote:(think I've lost most of those brain cells)
Franklin's Law of Child Development and Parents' Ages:

1) Children learn by osmosis. They suck the brain cells from their parents' brains.

2) Predicted age of onset of senility is the sum of the parent's age and the ages of his or her children. No experiments or surveys have been done to determine if there is a plateau age for the children, after which the addition is no longer valid.

:twisted:
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson

Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
skp
Premium Member
Premium Member
Posts: 135
Joined: Wed Dec 26, 2007 1:56 am
Location: India

Post by skp »

Thanks Franklin. As you mentioned, I gave from 8th position and worked for me.
Post Reply