I am new to work with Cobol COpy Books..
I got Cobol Copy Books and when i try to import the table definitions from that file,its not allowing me because import button is dimmed.
I tried to import using Manager--> import ---->Table definitions ----> Cobol File Definitions then i passed the Cobol file definition path name then import button should be enabled but its dimmed eventhough i pointed to the currect directory..
below is the cobol copy book definitions
When you import from a COBOL FD you can specify the column in which the level 01 item begins. The import wizard expects the A margin and B margin to be properly configured (two+ levels of indenting, usually four spaces each, though the importer can be flexible about that).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
By default start position is 8 when i import the cobol FD and also i did check in copy book, 01 level starts at 8 position and subsequent level starts after 4 positions of the top level i.e 01 level starts at 8,05 level starts at 12, level 10 starts at 16 so on.Still import button is dimmed.
Please advise me ..is there any thing wrong with the definitions in Cobol Copy Book.
Were you able to see the tables when you open the copy book from import wizard?
You can mention the start position from where you need to import, do you get any error when you open the file.
If tables have appeared, have you selected any of the tables before clikcing the Import button?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Can you please edit your original post on this thread; enclose it in Code tags to preserve the indenting, disable smilies then click Submit? Then we can copy/paste the FD and make some tests.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod wrote:Can you please edit your original post on this thread; enclose it in Code tags to preserve the indenting, disable smilies then click Submit? Then we can copy/paste the FD and make some tests.
You had
01 BDIPDATA-RECORD PIC X(97).
05 BDIPDATA-RECORD-ID PIC X(03).
05 BDIPDATA-RECORD-DATA PIC X(93).
05 BDIPDATA-RECORD-DELIMITER-X PIC X(01).
You can say
01 My Record
03 BDIPDATA-RECORD PIC X(97).
05 BDIPDATA-RECORD-ID PIC X(03).
05 BDIPDATA-RECORD-DATA PIC X(93).
05 BDIPDATA-RECORD-DELIMITER-X PIC X(01).
Now the import button is enabled.
Thanks for your response thurmy34..
Now i am getting the error for line 05 BDIP100-RECORD REDEFINES BDIPDATA-RECORD-DATA. says
'BDIPDATA-RECORD-DATA' column must redefine a previous column which has the same level number.
Please Advise ..
Thanks a lot for your help thurmy34.
Able to import the file definitions.
Could you please explain how do we define these in CFF Stage??
Please suggest me the way to parse this cobol file based on record type