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
 

 

The code worked previously is not workin now! Need Help

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: The code worked previously is not workin now! Need Help
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: 2360
Location: Israel

PostPosted: Thu Jun 21, 2007 3:01 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Sat Jul 28, 2007 9:32 pm    Post subject:
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    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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm


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