IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem to invoke a SKEL


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sureshbabuamara

New User


Joined: 20 Sep 2007
Posts: 16
Location: India

PostPosted: Fri Mar 07, 2008 6:13 pm
Reply with quote

Hi,

Using a REXX program I am trying to invoke a SKEL, the problem here is only some part of the SKEL copying into the output file but not the entire SKEL.

Code:

   ADDRESS ISPEXEC "CONTROL ERRORS RETURN"
   'ISPEXEC FTCLOSE'                     
   'ISPEXEC FTOPEN'                       
   'ISPEXEC FTINCL 'JOBNAME   ----> "ISPEXEC FTINCL JOBXXXXX"             
   'ISPEXEC FTINCL INTRDR'               
   'ISPEXEC FTCLOSE'                     

Below is the TRACED code

669 *-*        'ISPEXEC FTOPEN'           
    >L>          "ISPEXEC FTOPEN"         
670 *-*        'ISPEXEC FTINCL 'JOBNAME   
    >L>          "ISPEXEC FTINCL "         
    >V>          "JOBXXXXX"               
    >O>          "ISPEXEC FTINCL JOBXXXXX"
    +++ RC(20) +++                         
671 *-*        'ISPEXEC FTINCL INTRDR'   
    >L>          "ISPEXEC FTINCL INTRDR"
672 *-*        'ISPEXEC FTCLOSE'         
    >L>          "ISPEXEC FTCLOSE"



RC(20) is "Severe error"

JOBXXXXX contains 265 rows but only 30 rows are copying into the output file and INTRDR contains 15 rows, these 15 rows are properly appending to the above 30 rows.

Expected rows are 265 + 15 = 280, but actual output file has 30 + 15 = 45.

Can any one tell how can I over come this problem.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Mar 07, 2008 11:11 pm
Reply with quote

Try to display ZERRSM & ZERRLM to find out the actual problem.

O.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Mar 07, 2008 11:24 pm
Reply with quote

maybe the 31st row has something wrong in it icon_smile.gif
Back to top
View user's profile Send private message
sureshbabuamara

New User


Joined: 20 Sep 2007
Posts: 16
Location: India

PostPosted: Mon Mar 10, 2008 2:48 pm
Reply with quote

Thank you O and enrico sorichetti.

By using ZERRSM & ZERRLM I found out the problem is with the "<" symbol present in the line number 30, so I have removed the "<" symbol and ran the program again, this time error is showing at line 34.

I cant remove these comments in the JCL because these are exisiting JCLS.
Code:
000028 //             DISP=SHR                                                 
000029 //         DD  DSN=DB2LIBC.DSNLOAD,                                     
000030 //             DISP=SHR                                                 
000031 //SYSTSIN  DD  DSN=ENDEVOR.PR.PRM(JOBXXXM1),         ==DSN DB2 RUN PARM
000032 //             DISP=SHR                                                 
000033 //INCTRLF  DD  DUMMY                                                   
000034 //INPARM   DD  DSN=ENDEVOR.PR.PRM(JOBXXXM1),          <==PARAMETER FILE
000035 //             DISP=SHR                                                 
000036 //OUTREP   DD  DSN=JOBXXXM1.&RUN..INPUT.REPT(+1),             
000037 //             DISP=(,CATLG,DELETE),                 ==>TO PRINTEOS     


Can any one help me how to over come this problem
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Mar 10, 2008 3:40 pm
Reply with quote

You can use any character in an ISPF skeleton. Simply read the fine manual.

O.
Back to top
View user's profile Send private message
sureshbabuamara

New User


Joined: 20 Sep 2007
Posts: 16
Location: India

PostPosted: Mon Mar 10, 2008 4:24 pm
Reply with quote

Hi O,

I am not using "<" or ">" as an Comparison Operators in my JCL, In the exisitng system while writing a comment in JCL for easy understanding, all the Input file comments will start "<==" for output file with "==>".

In the previous example(post) for record 34, the error messages are:
ZERRLM : "Invalid cond. sub. string, JOBXXXM1 record-34"
ZERRSM : "Substitution error "

My understanding:
I think While loading the Skel, these comments("<==") are treating as an Comparison operator, so the error messages is Substitution error(Condtional operation).

If you don't mind can you please give me the exact URL, which you have mentioned above.

currently I am referring the below link:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/iea1b640/17.1.4.2?SHELF=&DT=20000718114500
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Mar 10, 2008 5:27 pm
Reply with quote

I would rather refer to
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ispdgd03/9.1?SHELF=ISPBKM08.bks&DT=19990720104842

which tells the reason why < > are reserved characters even if in a data statement

if You play around a little bit with the )DEFAULT statement You might overcome Your issues

I guess that also all the other posts complaining about ftincl error might have been hit by the <> conditional substitution issue
Back to top
View user's profile Send private message
sureshbabuamara

New User


Joined: 20 Sep 2007
Posts: 16
Location: India

PostPosted: Mon Mar 10, 2008 8:59 pm
Reply with quote

Thank you enrico sorichetti.

By using )DEFAULT statment now entire JCL is getting copied to my output file.
Code:

/*ROUTE PRINT LOCAL
DEFAULT )&?!$¢@    ----   replaced <,|,> with $,¢,@
//SET RUN=PROD,   
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
Search our Forums:

Back to Top