Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
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: 8165
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
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Iterative use of a REXX script causin... bryonyh CLIST & REXX 4 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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us