IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to cd to a directory and execute a script from there


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
PKONDURI

New User


Joined: 17 Mar 2009
Posts: 11
Location: PUNE,India

PostPosted: Tue Jul 14, 2009 10:20 pm
Reply with quote

Hi,
I have been trying to cd to a directory and execute a script from other location using this jcl
Code:

//RUN1 EXEC PGM=BPXBATCH,                               
// PARM='SH cd /u/uid/;/usr/lpp/SCRIPT.sh'               
//STDIN  DD PATH='/u/uid/SCRIPT.null'             
//STDOUT DD PATH='/u/uid/SCRIPT.out',             
//          PATHOPTS=(OWRONLY,OCREAT),PATHMODE=SIRWXU   
//STDERR DD PATH='/u/uid/SCRIPT.error',                   
//          PATHOPTS=(OWRONLY,OCREAT),PATHMODE=SIRWXU   
//*                                                     


I am getting this error message
Code:

MATERIALS: /usr/lpp/SCRIPT.sh 9: FSUM7351 not found                       
Arrival: /usr/lpp/SCRIPT.sh19: FSUM7351 not found                       
eration: /usr/lpp/SCRIPT.sh28: FSUM7351 not found                       
iated: /usr/lpp/SCRIPT.sh: FSUM7351 not found                         
RRIVAL_RATE/data: /usr/lpp/SCRIPT.sh 42: FSUM7351 not found               
760,090203,ASH:: /usr/lpp/SCRIPT.sh 52: FSUM7351 not found               
/usr/lpp/SCRIPT.sh 59: FSUM7332 syntax error: got &&, expecting Newline   
error: got &&, expecting Newline   


I guess this should not happen as script is very much present in the path usr/lpp/SCRIPT.sh

Kindly help me with this!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jul 14, 2009 10:44 pm
Reply with quote

Code:
MATERIALS: /usr/lpp/SCRIPT.sh 9: FSUM7351 not found
means that a command or file in line 9 of /usr/lpp/SCRIPT.sh was not found. It does not mean the script doesn't exist. Lines through number 59 of your script are generating errors according to your post.
Back to top
View user's profile Send private message
PKONDURI

New User


Joined: 17 Mar 2009
Posts: 11
Location: PUNE,India

PostPosted: Wed Jul 15, 2009 10:24 pm
Reply with quote

Hi Robert,
Thats true, lines of code were misplaced...Thanks for your time!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 15, 2009 10:45 pm
Reply with quote

Glad to hear you've got it resolved!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts A directory in the pathname was not f... ABENDS & Debugging 0
Search our Forums:

Back to Top