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
 

 

How to Use Sequential file to subit a jcl thru FTINCL

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

Active User


Joined: 24 May 2013
Posts: 129
Location: INDIA

PostPosted: Mon Jul 07, 2014 3:28 pm    Post subject: How to Use Sequential file to subit a jcl thru FTINCL
Reply with quote

Hi All,

I never done this before and couldn't get much info on web/this group as well . Hence posting this question

I am trying to submit a jcl thru FTINCL but the file is sequential and allocating dynamically depending on the user ..It gets create with the RACFID of the user as HLQ and then I am writing the jcl to it, .. when I am issuing FTOPEN or FTINCL command then I am getting below error.

I don't find any useful doc which will tell me about FTOPEN and FTINCL whether I can use these services for a sequential file or not .. I am passing few parameters to the file before submit it but its not done as well.

Can some one please help me on below points

1- Can I use File Tailoring services for sequential data set
2- Can I submit the job which is written in Sequential data set using file tailoring

Below is the trace of the commands.. Please help

Code:
683 *-*                       
                                                               
684 *-*  if P = 01                                             
    >>>    "1"                                                 
                                                               
    *-*   then                                                 
    *-*   do                                                   
                                                               
685 *-*    O = outtrap('OUT.','*')                             
    >>>      "OUT."                                           
                                                               
686 *-*    Address ISPEXEC                                     
                                                               
687 *-*    /*  "LIBDEF ISPSLIB DATASET ID('"jcl_file"')" */   
688 *-*    "FTOPEN TEMP"                                       
    >>>      "FTOPEN TEMP"                                     
    +++ RC(8) +++                                             
                                                               
689 *-*    "FTINCL "jcl_file""                                 
    >>>      "FTINCL AAAAA.JREPORT.JCLTO.SUBMIT"             
    +++ RC(20) +++           



Many Thanks in Advance
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1746
Location: Bloomington, IL

PostPosted: Mon Jul 07, 2014 5:04 pm    Post subject:
Reply with quote

  1. The return code 8 from FTOPEN indicates that file tailoring is already in progress.
  2. The parameter to FTINCL should be the name of the skeleton from ISPSLIB.
  3. There's a perfectly good ISPF Services manual linked to from this site. Read it.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Tue Jul 08, 2014 1:05 am    Post subject: Reply to: How to Use Sequential file to subit a jcl thru FT
Reply with quote

Quote:
the file is sequential and allocating dynamically depending on the user ..It gets create with the RACFID of the user as HLQ and then I am writing the jcl to it


Is the JCL that you create actually an ISPF skeleton? If it is not a skeleton, you can skip the file tailoring and just submit the file.

If you are using file tailoring, you need to make sure you allocate a PDS and create a member within the PDS.
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 3 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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