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

The code worked previously is not workin now! Need Help


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

New User


Joined: 20 Jun 2007
Posts: 2
Location: Chennai

PostPosted: Thu Jun 21, 2007 2:03 pm
Reply with quote

hi,

I am not an expert in Rexx coding, I am doing some automation using Rexx. In my way i come across a probelm that a piece of code which is pasted below is not woking which is worked earlier.

Code:

"LIBDEF ISPSLIB DATASET ID('"SourceSkltn"') UNCOND"   
if rc /= 0 then                                       
do                                                   
  say 'lIBDEF error'                                 
end                                                   
address ispexec "ftopen"                             
if rc /= 0 then                                       
do                                                   
  say 'Report file not opened'                       
end                                                   
/* ADDING THE HEADER FROM THE SKEL */                 
address ispexec "ftincl "REPV2                       
rept = 'report'                                       
  num = 2                                             
  do l = 1 to 10                                     
    Line = Line_Data.l                               
    say Line                                         
   end                                     
   /*address ispexec "ftincl "REPV2 */     
   num = 3                                   
   address ispexec "ftincl "REPV2         
   address ispexec "ftclose name("Rept")" 
   Say "RC for ftclose:"RC                 
 return                                   


now it is giving RC:20 for the ftclose function
but before this code worked well.

Can any body please help me in this issue.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jun 21, 2007 3:01 pm
Reply with quote

Try to add the following statement after each ISPEXEC service:
Code:
SAY ZERRSM; SAY ZERRLM


This mught give you more information.
O.
Back to top
View user's profile Send private message
satyanarayana.mutyala

New User


Joined: 20 Jun 2007
Posts: 2
Location: Chennai

PostPosted: Sat Jul 28, 2007 8:15 pm
Reply with quote

thank you ofer71,

i got the error and cleared my requirement.

thanks for your assistance
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Jul 28, 2007 9:32 pm
Reply with quote

satyanarayana.mutyala wrote:
i got the error and cleared my requirement.

Hi,

Good to know icon_smile.gif , still would like to know what was the solution, can you please share?
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top