Cobol over/under code

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
gmburcin
Premium Member
Premium Member
Posts: 4
Joined: Mon Dec 29, 2008 12:59 pm

Cobol over/under code

Post by gmburcin »

We are using datastage as an ETL tool. We have both server and parallel jobs. We use server because we could write a function to translate the Cobol over/under punches. We want to use the DSJOB report to generate an XML file that we can put job statistics into an Audit table. This, we have working for parallel jobs. However, the DSJOb report XML file is different for server jobs. Is there a way to handle the Cobol over/under punch in parallel?
George Burcin
Systems Analyst
University of Pittsburgh Medical Center
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Well... not sure what all of the dsjob comments have to do with the subject line. The PX Sequential File stage has the ability to read those zoned decimal / overpunched fields without needing any special function like Server does.

Set the decimal field Packed attribute to 'Yes' and then a sub-property will become available to specify the fact that it is overpunched. FYI - documented on page 5-26 (in my 7.x version) of the Parallel Job Developer's Guide pdf.
-craig

"You can never have too many knives" -- Logan Nine Fingers
pneumalin
Premium Member
Premium Member
Posts: 125
Joined: Sat May 07, 2005 6:32 am

Post by pneumalin »

George, I believe you are asking two questions:
1. Using DSJOB to generate a XML or Text and then parsing the record count info is one of the options. However, there are some other decent ways you can consider to take such as calling DSGetLinkInfo to collect the count.

2. Cobol Over Punch function can be simulated using Basic/PX Routine or a set of Stage Variables. I have done that last year when I helped my client convert the COBOL/PL1 program to DataStage. I will need to dig it out if you need it.

Pneuma.
gmburcin
Premium Member
Premium Member
Posts: 4
Joined: Mon Dec 29, 2008 12:59 pm

Post by gmburcin »

I would appreciate looking at your routine.
Thanks
George
George Burcin
Systems Analyst
University of Pittsburgh Medical Center
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm wondering why you would need a routine when the stage will (allegedly) handle this for you... are people finding that not to be the case? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

The stage handles it just fine if the file has been properly transferred in binary mode. I just created a parallel routine to undo the "corruption" caused by an ascii transfer. That overpunch character has meaning at the nibble level. The meaning is lost in an EBCDIC to ASCII character conversion.

Mike
Post Reply