Variable Replacement in a file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

Re: Variable Replacement in a file

#16 Post by Squashman » 11 Jul 2014 19:50

dbenham wrote:That's fine. I know nothing about JCL.

But I was speaking in terms of a general solution for a template file with replaceable parameters.

I forgot there is one other restriction - line length is limited to ~8k


Dave Benham

We limit our JCL to 80 characters per line. On the network side we put line numbers down the side out to 120 characters but when you upload it to the job scheduler on the mainframe it truncates down to 80.

Now I just need to find out if JCL ever uses the exclamation mark for anything. I doubt we use it.

dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: Variable Replacement in a file

#17 Post by dbenham » 11 Jul 2014 21:02

Don't forget about the caret. Even if your JCL never uses !, you could have a problem if a line contains both ^ and a substitution !variable!. The ^ would need to be encoded in this case.


Dave Benham

Post Reply