Running IND$FILE With CA Roscoe and ETSO.
search cancel

Running IND$FILE With CA Roscoe and ETSO.

book

Article ID: 25087

calendar_today

Updated On:

Products

Roscoe

Issue/Introduction

Question: 

How to set up IND$FILE With Roscoe Running under ETSO?

Environment

Release:
Component: ROSCOE

Resolution

Basic Instructions for setting up IND$FILE under ETSO are provided in the information account - RIF.ETSOIND$. RIF is an informational account this is loaded in Step 15 of the install - Restore CA Roscoe User Libraries.

Here is a summary of the steps:

    1. Add the following entry to the eligible program list:
             IND$FILE 1000 0512 0512 D N CP
    2. Create and save an RPF named IND$FILE in the RPF Execution Library (so that any user can execute it without having to specify the prefix). Here is a sample RPF:
      <<IND$FILE>>      : this rpf will destroy the aws - save the aws if required      PUSH      SET ATTACH NOPAUSE      SET BOUNDS AWS 1 3      Q DIVERT AWS      FIND /WTP/      READ AWS * L1 10 12      DIVERT WTP AWS      TRAP ON       +CALL IND$FILE /+A1+ '+A2+' +A3+ +A4+ +A5+ +A6+ +A7+ +A8+ /      TRAP OFF      IF INDEX(L1 '.') EQ 0        +DIVERT WTP +L1+      ELSE        +DIVERT WTP MEM +L1+      ENDIF      IF (TC EQ 0)        RESPONSE 'FILE TRANSFER COMPLETED, RC IS '|RC      ELSE        RESPONSE 'INCOMPLETE FILE TRANSFER, RC IS '|RC|', TC IS '|TC        WRITE AWS B LASTERR        A      ENDIF      POP      RETURN
    3. Before issuing the IND$FILE SEND or RECEIVE commands from the PC session, log on to ROSCOE from another PC window (for example, window "G").
    4. Switch to the PC window and issue the SEND or RECEIVE command, specifying the window containing the ROSCOE session; (for example window "G"). RECEIVE TEST1.TXT G:'ROSCOE.TEST.FILE' ASCII CRLF 
    5. You will then see the following command written to the first command line of the CA-ROSCOE session and the transfer will begin:
         IND$FILE GET 'ROSCOE.TEST.FILE' ASCII CRLF

Additional Information:

  • The IND$FILE buffer must be less than 32K or you will receive the error message
     ETS58 OUTPUT BUFFER SIZE TOO LARGE.
  • When IND$FILE is invoked, make sure that the cursor in the user's ROSCOE session is placed in the upper left corner, on the first command line. If it is placed somewhere in an active AWS the command is built incorrectly and the file on the PC will be empty. The single quotes in the commands must be included in order to prevent IND$FILE from adding a prefix to the dataset name (as under TSO).
  • The quotes must be put around the filename in the command in item 5 above or IND$FILE will add a prefix to the filename (as in TSO) and the file will not be found.