FSUM7332 syntax error: got (, expecting Newline
Posted: Sat Oct 31, 2015 3:56 am
I created a very simple shell script with only one line aimed to move a folder. Such shell named test2.sh was created by touch command and after this I gave the permission via chmod 777. I tried to run test2.sh by triggering the JCL JOB pasted below but I got ABENDED S000 U4095 imediately after I runned the JOB and
FSUM7332 in STDERR output. Do I have to add a second line in my shell? If so, what is the purpose and what should I enter to close my shell script?
FSUM7332 in STDERR output. Do I have to add a second line in my shell? If so, what is the purpose and what should I enter to close my shell script?
Code: Select all
test2.sh
000001, mv -r /usr/MyCompany/FROM /usr/MyCompany/TO
Code: Select all
JCL JOB
000001,//E0XXXXXR JOB (XXXXX,TS,4963),MySURNAME,NOTIFY=E0XXXXX,
000002,// CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),REGION=2047M
000003,/*JOBPARM SYSAFF=CPUE
000004,//BACKUP EXEC PGM=IKJEFT01,DYNAMNBR=250,REGION=0M
000005,//SYSTSPRT DD SYSOUT=*
000006,//STDERR DD SYSOUT=*
000007,//SYSTSIN DD *
000008, BPXBATCH SH +
000009, /usr/MyCompany/test2.sh
000010,//BACKUPA EXEC PGM=MCIABEND,COND=(0,EQ,BACKUP)
Code: Select all
The error after I submitted the JCL above and hit F3
ABENDED S000 U4095
Code: Select all
The error showed in STDERR
DDNAME StepName
STDERR BACKUP
/usr/MyCompany/test2.sh 1: FSUM7332 syntax error: got (, expecting Newline