asked on
ASKER
ASKER
ASKER
******ACCESSCLP***************
Daccess PR extproc('ACCESS2')
Dpath 100A
Drc 1A
*
DF_OK S 1A
DX S 10I 0 inz(0)
Dfile S 100A
*
* Call the CLLE module
/free
file = '/mydir/notthere.txt';
for X = 1 to 100000;
access(file:F_OK);
endfor;
*inlr = *on;
/end-free
*******ACCESS2 CLLE*******
PGM PARM(&FILE &RC)
DCL &FILE *CHAR 100
DCL &RC *CHAR 1
MOV OBJ(&FILE) TOOBJ(&FILE)
MONMSG MSGID(CPFA085 CPFA093 CPFA0B2 CPFA0A9) +
EXEC(CHGVAR VAR(&RC) VALUE('1'))
ENDPGM
*******ACCESSRPG**********
Daccess PR 10I 0 extproc('access')
Dpathptr1 * value options(*string)
Dmode1 10I 0 value
*
* IFS API Constants
DF_OK S 10I 0 inz(0)
Drc S 10I 0 inz(0)
DX S 10I 0 inz(0)
*
* Call the IFS API
/free
for X = 1 to 100000;
rc = access('/mydir/notthere.txt':F_OK);
endfor;
*inlr = *on;
/end-free
Operating systems perform basic tasks, such as recognizing input from the keyboard, sending output to the display screen, keeping track of files and directories on the disk, and controlling peripheral devices such as disk drives and printers. For large systems, the operating system makes sure that different programs and users running at the same time do not interfere with each other. The operating system is also responsible for security, ensuring that unauthorized users do not access the system. Operating systems provide a software platform on top of which other programs, called application programs, can run.
TRUSTED BY
PGM PARM(&OBJ &STAT)
DCL VAR(&OBJ) TYPE(*CHAR) LEN(50)
DCL VAR(&STAT) TYPE(*CHAR) LEN(1) VALUE('0')
MOV OBJ('/DCSDIR/GOESAN.TX') TOOBJ('/DCSDIR/GOESAN.TX')
MONMSG MSGID(CPFA085 CPFA093 CPFA0B2 CPFA0A9) +
EXEC(CHGVAR VAR(&STAT) VALUE('1'))
ENDPGM
Regards,
Murph