Diffence between two CICS READ ; FILE & DATASET



Hi,

I am a newbie in CICS COBOL. I came across two possible syntax to read
a file from a CICS program. The two syntax that I came across were

EXEC CICS
READ DATASET ('RASSPLSW')
INTO (RASSPLSW-RECORD)
RIDFLD (W-USERID)
RESP (W-RESP)
END-EXEC.


EXEC CICS
READ FILE('RASSPLSW')
INTO(USRRECC)
RIDFLD(CURRUSR)
END-EXEC.

The two syntax mainly differ only in the use of FILE || DATASET. I
would like to know this diffence...

Thanks alot for your valuable time.

Regards,
Praveen.

.



Relevant Pages

  • Re: Diffence between two CICS READ ; FILE & DATASET
    ... > I am a newbie in CICS COBOL. ... I came across two possible syntax to read ... if you specify the "NOHANDLE" keyword. ...
    (comp.lang.cobol)
  • Re: Diffence between two CICS READ ; FILE & DATASET
    ... I am a newbie in CICS COBOL. ... I came across two possible syntax to read ... At some point in the past IBM changed the syntax of EXEC CICS READ and recommended using FILE for all future READ commands, but they still had to support the DATASET keyword in order to allow older CICS programs to compile and execute without any source code changes. ...
    (comp.lang.cobol)
  • Re: Diffence between two CICS READ ; FILE & DATASET
    ... zum Thema Diffence between two CICS READ; ... I came across two possible syntax to read ... and the other takes the fields USRRECC and CURRUSR. ...
    (comp.lang.cobol)
  • Re: IBM, CICS, COBOL, et al
    ... > Old applications that do NOT use syntax that is no longer supported, ... > certainly be recompiled and run under the new CICS TS. ... Pete. ...
    (comp.lang.cobol)
  • Re: Detecting looping CICS transaction
    ... but using EXEC CICS COLLECT STATISTICS ... Subject: Detecting looping CICS transaction ...
    (bit.listserv.ibm-main)