Here is the one option to submit a job on mainframe from Unix korn shell.
#!/bin/ksh
ftp -n << EOF
open <servername>
user <userid> <password>
ascii
site file=jes
put <JCLfilename>
quit
EOF
=================
About JCLfilename: This file contains the JCL CODE.
This file should be there in...
I would like to SUBMIT A JOB ON MAINFRAME from Unix Korn Shell.
I have a JCL on Mainframe PDS.
Ex:
JCL NAME: STKRPT
PDS NAME: SCH.INVENTORY.JCLS
server name: satbdp1
userid: abcdxyz
password: abcdef1
FrOM Unix kron shell, I would like to submit my jcl
SCH.INVENTORY.JCLS(STKRPT).
I think...
Hi tdatgod,
Thanks for the reply. The a2ps command did not work on my unix machine(HP 11i Superdome). I would like to use the command in the KORN shell script (batch processing).
[ The other option MODE setting change on the printer is not allowed here. ]
Thank You.
Amar
Hi Salem, theotyflos,
Thank you for your quick replies.
1) The egrep command gave the expected result. Thank you Salem.
2. Not yet tried
3. About passing return-code from cobol.
in cobol
move nnn to RETURN-CODE
STOP RUN.
where nnn is a numeric valuee <=255)
in script:
rc = $?
echo...
Hi theotyflos, Truusvlugindewind,
Thank you for the information.
I tried as given below:
MOVE 105 TO RETURN-CODE.
STOP RUN.
in script:
rc=$?
echo $rc
It is found that it is working correctly when RETURN-CODE less than or equal to 255. I am trying to find out is there any other way to...
Hi,
Greetings. I am working on migration project which involves migration of cobol application from VAX/VMS platform to HP UNIX. I have couple of doubts while writing korn shell scripts. Could you let me know if you have information regarding how to handle the following task.
I want to pass...
Hi,
Greetings. I am working on migration project which involves migration of cobol application from VAX/VMS platform to HP UNIX. I have couple of doubts while writing korn shell scripts. Could you let me know if you have information regarding how to handle the following tasks.
1. Unix Sort...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.