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

Option for tracking code during compiling


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Thu Jun 10, 2010 5:12 pm
Reply with quote

i tried the rexx...it is not giving any error but it is not adding any displays to my source..can anyone help me with that
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu Jun 10, 2010 5:56 pm
Reply with quote

Well, how did you "try" it?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jun 10, 2010 5:58 pm
Reply with quote

Anuj,

welcome to 99% of the problem of supplying code to rookies - support!
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Thu Jun 10, 2010 5:59 pm
Reply with quote

i executed the rexx by TSO TRACEON(i saved the rexx with this name in my SYSproc... it did not give any error ...but it did not insert any displays also
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jun 10, 2010 6:01 pm
Reply with quote

Quote:
TRACEON


rename the REXX script.
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Thu Jun 10, 2010 6:01 pm
Reply with quote

i executed some simple rexx like add two numbers and all..they executed well.. but this did not work..iam new to rexx..
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jun 10, 2010 6:02 pm
Reply with quote

dbzTHEdinosauer wrote:
Quote:
TRACEON


rename the REXX script.
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Thu Jun 10, 2010 6:03 pm
Reply with quote

Did not work after renaming also
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jun 10, 2010 6:04 pm
Reply with quote

rename it to something like ADDDISP

trace and derivatives are reserved words.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jun 10, 2010 6:07 pm
Reply with quote

my using the term rookies has nothing to do with ethnic background.

is only has to do with experience.

and don't read anything else into my comment.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jun 10, 2010 6:54 pm
Reply with quote

since this is an edit macro, you do not need (actually you should not)
type TSO macroname
simply type macroname on command line.
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Fri Jun 11, 2010 11:51 am
Reply with quote

tried the above thign also..did not work...dont know what is the problem
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Jun 11, 2010 2:57 pm
Reply with quote

When you say, "it did not work" - please tell us what exactly happened?
  • No display was added?
  • Macro ended with some error?
  • Nothing happened?
  • Something else, if yes, what was that?
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Fri Jun 11, 2010 3:04 pm
Reply with quote

Nothing happened...no displays added... but no error also..
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Jun 11, 2010 3:10 pm
Reply with quote

Ok, so how did you do it?
  • In a PDS, opend a COBOL-program in view-mode (to avoid any side effect in start) and on comman-line typed "ADDDISP" and hit enter-key?
  • Opend some member (not a COBOL program)in view-mode (to avoid any side effect in start) and on comman-line typed "ADDDISP" and hit enter-key?
  • Were at ISPF START and on comman-line typed "ADDDISP" and hit enter-key?
  • Something else, if yes, what was that?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jun 11, 2010 3:11 pm
Reply with quote

insert a TRACE ?R statement in the macro so that you/we can see what is happening.
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Fri Jun 11, 2010 3:19 pm
Reply with quote

added the member in the pds ...then ALLOC DD(SYSEXEC) DSN('aaa.aaa.aaa') SHR REUSE

then opened the cobol member in view mode and typed TSO ADDDISP and enter...but nothign happened..
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Fri Jun 11, 2010 3:21 pm
Reply with quote

did a Trace ?R statement in the rexx...but how to see whts the problem with that..for some statements i got RC=20 and for some statements i got RC=1..and later it ended
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Jun 11, 2010 3:21 pm
Reply with quote

Well, Dick has already suggested not to prefix "TSO" as it's an edit macro. Have you tried using TRACE?
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Fri Jun 11, 2010 3:25 pm
Reply with quote

without TSO and just typing ADDDISP on the command prompt gives invaild command error...used trace and i got rc=20 and rc=1 messages...
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jun 11, 2010 3:36 pm
Reply with quote

Then it is probable that the REXX macro code is NOT in a library concatenated to either SYSPROC or SYSEXEC.
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Fri Jun 11, 2010 3:39 pm
Reply with quote

if that is the case then "Invalid Command" should be coming.. i tried another simple rexx of adding two numbers and on the command prompt typed TSO Rexxname and it is workign fine..dont know why the ADDDISP rexx is not working for me
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Fri Jun 11, 2010 3:51 pm
Reply with quote

Guys...somethign got working now...now i got display after IDENTIFICATION SECTION but then got the below error...

Command in error . : LINE_AFTER .ZCSR = 'DISPLAY 'DISPLAY 'IDENTIFICATION

Invalid parameter
Extraneous or invalid parameter was specified for LINE_AFTER command.

Error message ID . : ISRE181

Last return code . : 20

Macro executing . : ADDDISP

Press ENTER key to terminate the macro.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Jun 11, 2010 3:53 pm
Reply with quote

So, what is changed from your previous run to last execution?
Back to top
View user's profile Send private message
karz

New User


Joined: 04 Feb 2010
Posts: 39
Location: Mumbai

PostPosted: Fri Jun 11, 2010 3:55 pm
Reply with quote

Successs... but not entirely... Got all the displays at the PARA...but still the above error persists and also after running the rexx my IDENTIFiCATIOn DIVISION Looks like this

IDENTIFICATION DIVISION.
DISPLAY 'IDENTIFICATION DIVISION'
DISPLAY 'IDENTIFICATION DIVISION'
DISPLAY 'IDENTIFICATION DIVISION'
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 -> COBOL Programming Goto page 1, 2, 3  Next

 


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 SCOPE PENDING option -check data DB2 2
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top