[an error occurred while processing this directive] [an error occurred while processing this directive]
Do you have source some source that you want to share? Is there some source that you want to see posted here?
If so, Contact Us and we'll be more than happy to help.
Cobol Source
Driver Program
Color Program Source
Add Timestamp in cols 73-80
Convert line to upper case
Convert line to lower case
Add comment line
Remove comment line
CL Source
Color Source
Color Source Code (CMD)
Sample FTP Batch Processing
Get the device IP address
Verify IP Address with Ping
Set Library List with Job Description
Start My remote Printer (LPD)
Telnet Initialize program
Telnet Terminate program
DDS Source
Display a calendar window - DSPF
Color source code
DDS Functionality - AFPDS Examples
DDS to be used for external DS for DBF
DDS to be used for external DS for DSPF
DDS to be used for external DS for PRTF
DDS to be used for external DS for RPG
Display a calendar window - PF
Subfile Skeleton Display File
RPGLE Source
Display a calendar window
Color Souce code
1 EVAL statement to return the day of the week
Date Routine
Date and Time Subprocedures
DDS Functionality - AFPDS Examples
Convert Character to Numeric
Day of Week, Name of Month and Day
Standard HTTP Subprocedures (QTMHCGI)
Standard HTTP Supprocedures (QZHBCGI)
Library List Subprocedures
Replace Characters in String
String Functions
User Space Function Procedures
Copy Member for User Space Prototypes
Hello World Sample CGI Program using RPG
Increment a Character
Socket Program - Main
Subfile Skeleton Program
Socket Program - Submitted
Get and Put Spooled File API Example
             PGM
/********************************************************************/
/* The IP address is dynanically assigned when the PC connects to   */
/* the AS/400, so this command needs to be run for each session.    */
/*                                                                  */
/* This programs calls a program to get the IP address.             */
/*                                                                  */
/* This program will create or change the writers.                  */
/*                                                                  */
/* The PC must be running something to handle LPD.                  */
/* MochaSoft has software to do this at:                            */
/* http://www.mochasoft.dk/win95.html#wlpd                          */
/*                                                                  */
/********************************************************************/

DCL        VAR(&USER)    TYPE(*CHAR) LEN(10)
DCL        VAR(&DEVD)    TYPE(*CHAR) LEN(10)
DCL        VAR(&IP)      TYPE(*CHAR) LEN(15)
DCL        VAR(&LIBERR)  TYPE(*CHAR) LEN(1)  VALUE('N')

RTVJOBA    JOB(&DEVD) USER(&USER)

ADDLIBLE   LIB(QGPL) POSITION(*LAST)
MONMSG     MSGID(CPF2103) EXEC(CHGVAR VAR(&LIBERR) VALUE('Y'))

ENDWTR WTR(&USER) OPTION(*IMMED)
MONMSG     MSGID(CPF3313 CPF0001)

DLYJOB     DLY(3) /* wait for writer to end */

CALL       PGM(RTVIPADR) PARM(&DEVD &IP) /* IP ADDRESS OF THE PC/PRTR */

CRTDEVPRT DEVD(&USER) DEVCLS(*VRT) TYPE(3812) MODEL(1) FONT(011)
MONMSG     MSGID(CPF261A) /* check if it already exists */

CHGOUTQ    OUTQ(&USER) RMTSYS(*INTNETADR) RMTPRTQ(&USER) CNNTYPE(*IP) +
           DESTTYPE(*OTHER) TRANSFORM(*NO) INTNETADR(&IP)

STRRMTWTR  OUTQ(&USER)
MONMSG CPF3310    /* CHECK IF ALREADY STARTED */

IF         COND(&LIBERR *EQ 'N') THEN(RMVLIBLE LIB(QGPL))
/* REMOVE QGPL FROM LIBL IF IT WAS NOT IN IT BEFORE THIS PGM RAN */

ENDPGM
[an error occurred while processing this directive]