22.09.2013 Views

NetCOBOL for SPARC Architecture SAF Subroutines User's Guide

NetCOBOL for SPARC Architecture SAF Subroutines User's Guide

NetCOBOL for SPARC Architecture SAF Subroutines User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

116 Appendix D. CGI To <strong>SAF</strong> <strong>Subroutines</strong> Conversion <strong>Guide</strong><br />

Conversion from CGI to <strong>SAF</strong><br />

In principle, <strong>NetCOBOL</strong> <strong>SAF</strong> subroutines (hereafter referred to as <strong>SAF</strong> applications)<br />

guarantee upward compatibility in source <strong>for</strong> COBOL CGI applications (hereafter<br />

referred to as CGI applications). There<strong>for</strong>e, it is easy to modify Web applications<br />

created using CGI subroutines into Web applications using <strong>SAF</strong> subroutines.<br />

However, some modifications in the programs, compilations, and the linking methods<br />

are required, since the <strong>SAF</strong> subroutines have their own unique functions. This<br />

chapter describes the matters that require attention <strong>for</strong> the conversion from CGI to<br />

<strong>SAF</strong>.<br />

First, the table below shows the difference between Web applications created using<br />

CGI subroutines and Web applications using <strong>SAF</strong> subroutines.<br />

No. Item CGI applications <strong>SAF</strong> applications<br />

1 Application <strong>for</strong>m Main program (EXE) Subprogram (DLL)<br />

2 Unit of execution Process Thread<br />

3 Server interface area Unnecessary Inevitable<br />

4 Environment variable operation Arbitrary Restricted<br />

5 CGI environment variable Enabled using supplied Enabled using supplied<br />

operation<br />

subroutines or<br />

DISPLAY/ACCEPT<br />

statements.<br />

subroutines only.<br />

To implement a conversion from CGI to <strong>SAF</strong>, the above-noted items must be<br />

modified. Details of these modifications are described in the following chapters.<br />

The subroutines shown below only work in an environment where Web applications<br />

run in the ASCII code system, though they are included in the supplied <strong>NetCOBOL</strong><br />

<strong>SAF</strong> subroutines <strong>for</strong> the sake of compatibility.<br />

We recommend implementing corrections <strong>for</strong> the substitute subroutines, when<br />

per<strong>for</strong>ming a conversion from CGI to <strong>SAF</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!