Page 1 of 1

How to Copy Symbolic Parameters into O/P file using JCl.

PostPosted: Thu May 03, 2012 5:12 pm
by kiruthi
Hi,

I would like to dummy my input file if PARM value is "06"(MM),For all other parm values, the input file should be normal.

Is there any way to do this with JCL..?

Thanks.

Re: How to Copy Symbolic Parameters into O/P file using JCl

PostPosted: Thu May 03, 2012 5:32 pm
by BillyBoyo
Why have you posted in DFSORT/ICETOOL?

Have you got a Sort step where you want to ignore all the input for a specific value established in the JCL?

Re: How to Copy Symbolic Parameters into O/P file using JCl

PostPosted: Thu May 03, 2012 8:04 pm
by kiruthi
Using JP#,is there any way to retrieve parm value?
I thought of
1.Retrievin the Parm value into output file.And check the value using IFTHEN .
2.If '06' found then,dummy the input file using "Build",else copy the input file to temp file and pass it onto next step..
To Create output file with Parm value,I searced in net and found code with symbolic parameter replacement of Parm value JP#. I tried with the Sort card
INREC BUILD=(1,80,JP1)
But got Syntax error.
My question is how to create output file with Parm value.So that I can proceed further..Please correct me if am wrong.

Re: How to Copy Symbolic Parameters into O/P file using JCl

PostPosted: Thu May 03, 2012 8:31 pm
by BillyBoyo
Sorry, i'm still not clear.

Do you have a parameter which you want to match against data to exclude, or a parameter which is telling you data file or no data file?

If you can describe what it is you want to achieve, rather than how you think you should achieve it, things will be clearer.

Re: How to Copy Symbolic Parameters into O/P file using JCl

PostPosted: Thu May 03, 2012 10:36 pm
by Frank Yaeger
But got Syntax error.


Presumably JP1 is a symbol you tried to create on the EXEC statement, but you haven't shown your EXEC statement. How are we supposed to help you figure out why you got a syntax error when you don't show your JCL, the messages you got, etc?

You need to a better job of explaining exactly what you're trying to do, what you tried, and what messages you received before anyone can help you.

Re: How to Copy Symbolic Parameters into O/P file using JCl

PostPosted: Fri May 04, 2012 7:52 pm
by gokulNmf
can you please post the jcl?