View previous topic :: View next topic
|
Author |
Message |
ignich7
New User
Joined: 02 Nov 2005 Posts: 66
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
ignich7
New User
Joined: 02 Nov 2005 Posts: 66
|
|
|
|
No. I am getting same err :-( |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
ignich7
New User
Joined: 02 Nov 2005 Posts: 66
|
|
|
|
Thanks for your time and help.
Its Working now :-)
-Nich |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Good to hear! |
|
Back to top |
|
|
|