Converting server routine into parallel

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
aschindler
Participant
Posts: 30
Joined: Wed May 15, 2013 1:22 am
Location: Bangalore

Converting server routine into parallel

Post by aschindler »

Hi Team,

I have a server routine with below code to get the status of job,i need the same functionality to incorporated in a PX routine.As am not familiar with parllel routine,can any one help me with code.

$include DSINCLUDE JOBCONTROL.H
JOBHANDLE=DSAttachJob(JOBNAME,DSJ.ERRFATAL)
Ans=DSGetJobInfo(JOBHANDLE,DSJ.JOBSTATUS)

I know about using a server shared container ,but i want it in a PX routine
Cheers,
Schindler
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: Converting server routine into parallel

Post by SURA »

As far as i know, C++ is the source for creating Parallel routine. If you want to use the PX, then you need to find the way to call the header files and operators using C++.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Correct, there's no "converting" in any sort of automated sense. You understand what the BASIC is doing and rewrite it in C++.
-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 correct header files are there and the 2 calls are documented. I believe that there is an example on the IBM pages for a simple function call like this, but can't recall where it was.
aschindler
Participant
Posts: 30
Joined: Wed May 15, 2013 1:22 am
Location: Bangalore

Post by aschindler »

Thanks for your inputs..
Cheers,
Schindler
Post Reply