I am using since several years AFRREBLK in the 6 Panel in comand line but I'd rather to batch it in a JCL because we will soon receive many files that will need to be reblocked.
So, I'm facing 1 issue:
I'm not able to put the DSN in parameters in the AFRREBLK command.
Please find in attachment the JCL i'm currently using.
&INDSN and &OUTDSN work in the allocation on the DD cards but don't work in the AFRREBLK command in the SYSIN.
So, I have to put the full DSNs in the AFRREBLK command, which is useless...
Maybe I should have posted it in the "JCL forum" ? If so, please the moderateur feel free to move this post where it should have been posted ...
Thx
XofPlata wrote:
Hi !
I am using since several years AFRREBLK in the 6 Panel in comand line but I'd rather to batch it in a JCL because we will soon receive many files that will need to be reblocked.
So, I'm facing 1 issue:
I'm not able to put the DSN in parameters in the AFRREBLK command.
Please find in attachment the JCL i'm currently using.
&INDSN and &OUTDSN work in the allocation on the DD cards but don't work in the AFRREBLK command in the SYSIN.
So, I have to put the full DSNs in the AFRREBLK command, which is useless...
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
Do not post attachments. Cut and paste is simpler and more secure. Many people do not or cannot download attachments. Make sure, if posting screenshots, code, data or anything else requiring a fixed pitch font that you enclose the information within the code tags.
Please repost your attachment as a cut and paste.
I have the same issue whatever the syntax of the AFRREBLK :
- on 1 line with the quotes around &INDSN and &OUTDSN
- on 1 line without the quotes
- on 2 lines with or withour the quotes (but with the "-" at the end of the first line, of course)