required rexx script for following query

Ask questions about any other mainframe topics which are not covered above

Moderator: Moderator Group

Post Reply
moon1910
Member
Posts: 6
Joined: Thu Jan 31, 2008 5:30 pm

required rexx script for following query

Post by moon1910 » Fri Feb 01, 2008 12:36 pm

hi alll,

i want to write rexx script..

i have to Create a web application to display the source of a mainframe COBOL program. Hyper links should be inserted to allow navigation around the program.

this has to be done by using rexx code..

Input parameters:
library MVS library name. Default to PQDPR.BATCHPR.JCLLIP if not specified
member Library member name ? must be specified (1-8 chars)

If the parameters are incorrect, generate an error page

<html>
<head>
<title>COBOL ? Error</title>
</head>
<body>

?
error details
?
</body>
</html>


[b]processing::/b]

Open the file specified by the input parameters.
Generate an error page if the source file does not exist or cannot be opened.

Headers
Output the page headers

<html>
<head>
<title>COBOL ? program name</title>
</head>
<body>
<pre>

Set program name in the title to the input member name

Output source
Now output the contents of the input file. Where ever a PERFORM or PEFORMX statement is processed, insert a hyperlink.

For example

PERFORM R000-READ-FILE

Should be output as:

PERFORM <a href=?#R000-READ-FILE?>R000-READ-FILE</a>
Where a paragraph or section name or DT is found, insert an anchor

For example

R000-READ-FILE.

Should be output as:

<a name=?R000-READ-FILE?>R000-READ-FILE</a>.

Trailers
After the entire input file has been output, output the closing tags.

</pre>
</body>
</html>


so how can i code rexx script??
thanks in advance

varun
Member
Posts: 5
Joined: Thu Oct 25, 2007 1:48 am

Post by varun » Mon Feb 18, 2008 1:27 am

I see that its been quite some time since you posted your query, but nobody has replied. Have you got this working by yourself?

If not, send me a PM. I need some more information before I can work with you to set this thing up.

Varun

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Mon Feb 18, 2008 10:33 am

Hi Varun,

It is helpful to all board members, if you can use forum for discussion instead of PM.

Anyhow, thanks for your willingness to share your knowledge.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others