Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 4649
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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us