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

Error on submitting job after file tailoring


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maks

New User


Joined: 22 Jun 2007
Posts: 7
Location: bangalore

PostPosted: Thu Oct 25, 2007 8:38 pm
Reply with quote

i'm using the below code for submitting the jcl :

"ISPEXEC LIBDEF ISPSLIB DATASET ID('"myid.REXX.EXEC1"')"
ADDRESS ISPEXEC
'FTOPEN TEMP'
'FTINCL PLIDUMMY'
'FTCLOSE'
'VGET ZTEMPF'
ADDRESS TSO "SUBMIT ("ZTEMPF")"



21 *-* ADDRESS TSO "SUBMIT ("ZTEMPF")"
>>> "SUBMIT (SYS07298.T163827.RA000.myid.R0118255)"
56268I INVALID DATA SET NAME SYS07298.T163827.RA000.J012874.R0118255, EXCEED
CHARACTERS
+++ RC(12) +++

here myid is my mf id.

Please help.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Oct 25, 2007 9:12 pm
Reply with quote

According to the 2.16 FTOPEN--begin file tailoring Chapter in the z/OS V1R9.0 ISPF Services Guide:

Quote:

ZTEMPF contains a fully qualified data set name.


My quick test worked with:
Code:

"ISPEXEC VGET (ztempf) ASIS"
"SUBMIT '"ztempf"'"
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 25, 2007 9:16 pm
Reply with quote

strange.....
never remember about getting a sys... dataset

I just run a test with

Code:

Trace "I"                         
address ispexec "FTOPEN TEMP"     
address ispexec "FTINCL TSTSKEL"   
address ispexec "FTCLOSE"         
address ispexec "VGET ZTEMPF"     
Address TSO     "SUBMIT ("ZTEMPF")"
return 0                           


and here is the trace ...

Code:

 5 *-* address ispexec "FTOPEN TEMP"     
   >L>   "FTOPEN TEMP"                   
 6 *-* address ispexec "FTINCL TSTSKEL"   
   >L>   "FTINCL TSTSKEL"                 
 7 *-* address ispexec "FTCLOSE"         
   >L>   "FTCLOSE"                       
 8 *-* address ispexec "VGET ZTEMPF"     
   >L>   "VGET ZTEMPF"                   
 9 *-* Address TSO     "SUBMIT ("ZTEMPF")"
   >L>   "SUBMIT ("                       
       >V>   "ENRICO.SPFTEMP1.CNTL"         
       >O>   "SUBMIT (ENRICO.SPFTEMP1.CNTL" 
       >L>   ")"                             
       >O>   "SUBMIT (ENRICO.SPFTEMP1.CNTL)"
JOB ENRICO@A(JOB00905) SUBMITTED             
    10 *-* return 0                         
       >L>   "0"                             


As expected I got as ztempf a "userid.SPFTEMP*.CNTL"
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 25, 2007 9:35 pm
Reply with quote

little things to aware of...

Code:
 Address TSO     "SUBMIT ("ZTEMPF")" 


is sensitive to the tso profile PREFIX settings

not to have any problem You should code

Code:
Address TSO     "SUBMIT ('"ZTEMPF"')"


the name too long probably depends on the fact that as normal
for standards end users You have your prefix set to Your userid
and adding in front of a temporary dataset a userid will most probably exceed
the dataset name length of 44 chars
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top