Skip to Content
0
Former Member
Apr 19, 2007 at 08:45 PM

SET/GET Parameter in Background Jobs

744 Views

Hi,

I have one program (zprog_1)

report zprogr_1.

...........................

data: f1 type i value 1000.

SET PARAMETER ID pid FIELD f1.

SUBMIT zprog_2.

<b>In my second program(zprog_2) i have like this</b>

Report zprog_2.

data: f2 type i.

GET PARAMETER ID pid FIELD f2.

WRITE: / F2.

<b>So the O/P is F2 = 1000.</b>

But, I wanted to run the same thing in background. So, i did like this in (zprog_1)

report zprogr_1.

...........................

data: f1 type i.

SET PARAMETER ID pid FIELD f1.

............................

call function 'job_open'. " with job name, job number etc.

submit zprog_2. " with job name, job number, spool , return etc..

call funtion 'job_close'

<b>In this case also i shuld be able to see f2 = 1000 from spool. It is creaing the batch and running the program But, Its not displaying that value as f2 = 1000 !

Anybody has any clue ?