Page 1 of 1

CFF stage and sample data

Posted: Wed Jun 29, 2016 8:48 am
by vamsi_4a6
I have sample cobalbook as below but i do not have any sample data but i need to proceed with development.Could anybody provide two sample records since i am new to cobol and CFF stage.

********************************
* COBOL DECLARATION FOR ORDERS *
********************************

01 HEADER.
05 ORDERNUM PIC S9(5).
05 RECTYPE PIC X(1).
05 NAME PIC X(20).
05 ORDDATE PIC X(10).

01 DETAIL.
05 ORDERNUM PIC S9(5).
05 RECTYPE PIC X(1).
05 PRODUCTID PIC S9(5).
05 QTY PIC S9(5).

Posted: Wed Jun 29, 2016 8:57 am
by qt_ky
Please try using the Row Generator stage. It is very useful for generating yourself some test records.

Posted: Wed Jun 29, 2016 9:05 am
by vamsi_4a6
Thanks for reply i know we can use row generator stage but I do not know sample data as per cobol book

Posted: Wed Jun 29, 2016 9:29 am
by qt_ky
Have you tried importing the copybook? Then Designer will know which native data types to load into your Columns tab.

Posted: Wed Jun 29, 2016 9:29 am
by chulett
COBOL PICTURE clauses aren't all that mysterious but you should probably ask for sample / test data to be delivered since it will typically come in EBCDIC rather than ASCII so not all that simple to generate. However, with nothing packed / comp you could get away with straight-up ASCII samples for testing, it seems to me.