Copy local Linux Programs and JCL to MVS

Was looking for a way to get my local Linux Programs and JCL to a MVS PDS. So I could edit & submit from there if I wanted. I could use x3280 File Transfer (IND$FILE)…I guess. But I find it a little tedious, there’s no file selector box and you can’t even paste into the file name fields! Anywho found IEBUPDTE where I can enclose said data between…

./        ADD   LIST=ALL,NAME=SORT01
Programs and JCL…
./        ENDUP

It seems like a good solution however a ‘/*’ in my JCL, which is often there, seems to screw it up. Why? Shouldn’t it should just continue until the ‘./ ENDUP’

I will probably will just create a Python program that asks for the data and wrap it in the IEBUPDTE JCL and replace any ‘/*’ with ‘slash *’ or something like that. Also strip trailing spaces which screws up IEBUPDTE if the data exceeds 80 characters.

FYI: Trim Trailing Whitespace typed into the Command Palatte of VS code will also…well you know!