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
 
Error on submitting job after file tailoring

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Error on submitting job after file tailoring
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

Moderator Team Head


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

PostPosted: Thu Oct 25, 2007 9:12 pm    Post subject: Reply to: Error on submitting job after file tailoring
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Thu Oct 25, 2007 9:16 pm    Post subject: Reply to: Error on submitting job after file tailoring
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Thu Oct 25, 2007 9:35 pm    Post subject: Reply to: Error on submitting job after file tailoring
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

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