Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Using Winscp script to submit JCL to JES on IBM Mainframe

I have tried to convert the ftp key word quote to use call in this script:
@echo off
"C:\Program Files (x86)\WinSCP\" ^
/log="D:\DATA\log\SendJCL.log" /ini=nul ^
/command ^
"open ftpes://" ^
"Call site filetype=jes" ^
"put -transfer=Ascii d:\data\jcl\MyJOB.JCL" ^
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
It stops after the open statement with a WinSCP command prompt
I then paste the call command at the prompt: winscp>Call site filetype=jes ^
then paste the Put command at the prompt: winscp>put -transfer=Ascii d:\data\jcl\JOB.JCL" ^
and the job is submitted successfully.
I Cannot figure out why it is not processing the entire script automatically
any help is appreciated