Can I open an MS Word document in the iSeries system? We have a V3R7 server and use Client Access to access the...
server. Can we use STRPCO command, or is there any other command?
Using the STRPCO and STRPCCMD commands, you can use the server to open a window on the PC to display the word document. Any other alternative would require custom programs for the PC as well as the AS/400-iSeries system. A simple example of what you are attempting to do is:
PGM PARM(&SERVER &PCFILE) DCL VAR(&SERVER) TYPE(*CHAR) LEN(10) DCL VAR(&PCFILE) TYPE(*CHAR) LEN(128) CHKOBJ OBJ(QTEMP/STRPCO) OBJTYPE(*DTAARA) MONMSG MSGID(CPF9801) EXEC(DO) CRTDTAARA DTAARA(QTEMP/STRPCO) TYPE(*CHAR) LEN(1) + TEXT('Start PCO Data Area') STRPCO PCTA(*NO) MONMSG MSGID(IWS4010) ENDDO STRPCCMD PCCMD('START' *BCAT '' *CAT &SERVER *CAT + 'documents' *CAT &PCFILE) PAUSE(*NO) /* This string should end up being something like + START MYAS400documentsword.doc */ ENDG: ENDPGM
This would assume that the user is using Client Access to access the iSeries and that the remote command processes are turned on in their configuration on the PC.
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.