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

IKJEFT01 err when trying to run OMVS cmds


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ignich7

New User


Joined: 02 Nov 2005
Posts: 66

PostPosted: Sat Nov 15, 2008 3:45 am
Reply with quote

When I submit this..

//STEP1 EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTERM DD DUMMY
//SYSTSIN DD *
ls /u/dir1/dir2
/*


I get..
COMMAND LS NOT FOUND

I am trying to execute ls OMVS commad to display directory.
I suspect the command ls automatically converted to uppercase. If so, please let me know how to avoid this case conversion.

Thanks in advance
Nich
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: Sat Nov 15, 2008 4:23 am
Reply with quote

Code:
//STEP1 EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTERM DD DUMMY
//SYSTSIN DD *
  oshell ls /u/dir1/dir2
/*
should work a bit better.
Back to top
View user's profile Send private message
ignich7

New User


Joined: 02 Nov 2005
Posts: 66

PostPosted: Mon Nov 17, 2008 11:54 pm
Reply with quote

No. I am getting same err :-(
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 Nov 18, 2008 12:03 am
Reply with quote

I took a closer look at your JCL-- you're missing SYSPROC:
Code:
//STEP1 EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSPROC  DD DISP=SHR,DSN=SYS1.SBPXEXEC
//SYSTSPRT DD SYSOUT=*
//SYSTERM DD DUMMY
//SYSTSIN DD *
  oshell ls /u/dir1/dir2
/*
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 Nov 18, 2008 12:08 am
Reply with quote

And, by the way, your original problem was that lt is NOT a TSO command -- and therefore cannot be found by TSO. Without the oshell in front of it, you're always going to get that error message because IKJEFT01 is the way to get into TSO from batch, not Unix System Services.

And oshell is found in SYS1.SBPXEXEC which is why you're going to have a problem unless you include this library in your JCL.
Back to top
View user's profile Send private message
ignich7

New User


Joined: 02 Nov 2005
Posts: 66

PostPosted: Tue Nov 18, 2008 12:20 am
Reply with quote

Thanks for your time and help.
Its Working now :-)

-Nich
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 Nov 18, 2008 12:22 am
Reply with quote

Good to hear!
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts using EGREP in OMVS TSO/ISPF 9
No new posts OMVS Shell Script not working properly. All Other Mainframe Topics 1
No new posts COBOL D2 program execution without us... DB2 3
No new posts IKJEFT01 DB2 3
No new posts Calling IKJEFT01 program from Rexx CLIST & REXX 8
Search our Forums:

Back to Top