Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to cd to a directory and execute a script from there
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: 8121
Location: East Dubuque, Illinois, USA

PostPosted: Tue Jul 14, 2009 10:44 pm    Post subject:
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    Post subject:
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: 8121
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jul 15, 2009 10:45 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Iterative use of a REXX script causin... bryonyh CLIST & REXX 0 Fri Jul 28, 2017 12:52 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us