REXX code required urgentely :::

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

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

REXX code required urgentely :::

Post by moon1910 » Tue Mar 25, 2008 12:24 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>


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

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