I am trying to execute some unix commend through mainframes, i searched the forums and found out about BPXBATCH, when i tried executing a simple JCL i get this error FSUM1004 Cannot change to directory </u/userid>
//******** JOB (D3),'UNIX',
//BPXBATCH EXEC PGM=BPXBATCH
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//STDPARM DD *
SH echo "This is my first test";
What is wrong with my script?.... also if i am executing a shell script placed in an UNIX server how do i do it using BPXBATCH? , what parameters do i need, like do i need the IP of the UNIX server to make a connection and then specifiy the directory structure where my script is placed?[/code]
Joined: 06 Jun 2008 Posts: 8154 Location: East Dubuque, Illinois, USA
Problem 1: assuming your site uses RACF, contact your site security group and verify that your user id has an OMVS segment with valid program and home entries. (TOP SECRET and ACF/2 have similar functions but I don't use them so don't know their terminology).
Problem 2: contact your site support group and verify that your home directory /u/userid exists or have it created (automount works well).
Problem 3: Unix commands are case-sensitive. You entering SH means you are attempting to execute a program called SH in your home directory -- you are not running a shell command.