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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm

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