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 while using File Tailoring command in batch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Wed May 09, 2007 9:38 am    Post subject: Error while using File Tailoring command in batch
Reply with quote

Hi All ,
I am facing the following issue while using the file tailoring command in batch, I added my Skeleton library to ISPSLIB even though , i am facing problem

My Rexx Code:
Code:
trace C                                                   
  TBL_JCL=USERID()'.TABLE.JCL'                           
  IF SYSDSN("'"TBL_JCL"'") = 'OK' THEN                   
  DO                                                     
    X = OUTTRAP('ZZZ.')                                   
    "DELETE '"TBL_JCL"'"                                 
    X = OUTTRAP('OFF')                                   
  END                                                     
  ADDRESS TSO                                             
  "ALLOCATE DA('"TBL_JCL"') FI(ISPFILE) REUSE NEW ",     
  "RECFM(F,B) LRECL(80) BLOCK(80)"                       
   ADDRESS ISPEXEC  "FTOPEN"                             
   ADDRESS ISPEXEC  "FTINCL " TBL                         
   ADDRESS ISPEXEC  "FTCLOSE"                             
   ADDRESS TSO                                           
   "FREE F(ISPFILE)"                                     
   ADDRESS TSO                                           
   "SUBMIT '"TBL_JCL"'"   


My JCl :

Code:
//TSOBTCH1 EXEC PGM=IKJEFT01                                   
//SYSTSPRT DD SYSOUT=*                                         
//SYSUDUMP DD SYSOUT=*                                         
//SYSOUT   DD SYSOUT=*                                         
//SYSTSPRT DD SYSOUT=*                                         
//SYSPRINT DD SYSOUT=*                                         
//ISPLOG   DD DUMMY,DCB=(RECFM=VA,LRECL=125,BLKSIZE=129)       
//ISPLIST  DD DUMMY,DCB=(RECFM=VA,LRECL=125,BLKSIZE=129)       
//ISPLST1  DD DISP=NEW,UNIT=SYSDA,SPACE=(CYL,(1,1)),           
//            DCB=(LRECL=121,BLKSIZE=1210,RECFM=FBA)           
//ISPLST2  DD DISP=NEW,UNIT=SYSDA,SPACE=(CYL,(1,1)),           
//            DCB=(LRECL=121,BLKSIZE=1210,RECFM=FBA)           
//SYSPRINT DD SYSOUT=*                                         
//SYSPROC  DD DSN=<My REXX PDS>,DISP=SHR                     
//ISPSLIB  DD DSN=<My skeleton PDS>,DISP=SHR               
//SYSTSPRT DD SYSOUT=*                                         
//SYSTSIN  DD * 
%SKLTEST         
/*             



The Trace Output is :

Code:
ADDRESS ISPEXEC  "FTOPEN"         
   "FTOPEN"                         
 RC(-3) +++                         
 ADDRESS ISPEXEC  "FTINCL " TBL     
   "FTINCL  TBL"                   
 RC(-3) +++                         
 ADDRESS ISPEXEC  "FTCLOSE"         
   "FTCLOSE"                       
 RC(-3) +++                         
 "FREE F(ISPFILE)"                 
   "FREE F(ISPFILE)"               
 "SUBMIT '"TBL_JCL"'"               
   "SUBMIT 'A028113.TABLE.JCL'"     
INPUT DATA SET A028113.TABLE.JCL NOT USABLE+



Thanks
Sai
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed May 09, 2007 10:45 am    Post subject:
Reply with quote

You have to add all ISPF libraries to your job. Please search this forum for "ISPF" and "batch".

O.
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: Wed May 09, 2007 11:54 am    Post subject: Re: Error while using File Tailoring command in batch
Reply with quote

Here's just a few of the previous topics:

http://www.ibmmainframes.com/viewtopic.php?t=14754
http://www.ibmmainframes.com/viewtopic.php?t=20370
http://www.ibmmainframes.com/viewtopic.php?t=17588
http://www.ibmmainframes.com/viewtopic.php?t=17123
http://www.ibmmainframes.com/viewtopic.php?t=10839
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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts 3270 Data stream error Benchwarmer CICS 4 Tue Apr 17, 2018 12:06 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am

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