I am in part going to answer my own question which I was not expecting to do. I ran across, after lots of searching, a piece of code that is exactly what I needed.
So this uses that mainframe magic my peer was talking about to pass the site commands using the ls
command.
I am just taking a small excerpt that shows what I was trying to accomplish here:
String lrecl = "/+/lrecl=128"
JSch jsch = new JSch();
Session session = jsch.getSession(user, hostName, port);
session.setPassword(password);
session.connect(120000);
ChannelSftp channel = (ChannelSftp)session.openChannel("sftp");
channel.connect(100000);
channel.ls(lrecl);
This was only part of the code but does show how a site command can be passed. I have not confirmed if all site commands can be sent this way or not.
Hope this helps or saves someone some time.
Any feed back or thoughts on this approach please let me know.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…