Page 1 of 1

Converting server routine into parallel

Posted: Wed Jun 12, 2013 10:32 pm
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

Re: Converting server routine into parallel

Posted: Thu Jun 13, 2013 12:02 am
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++.

Posted: Thu Jun 13, 2013 6:59 am
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++.

Posted: Thu Jun 13, 2013 9:18 am
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.

Posted: Fri Jun 14, 2013 12:40 am
by aschindler
Thanks for your inputs..