Re: Diffence between two CICS READ ; FILE & DATASET
- From: Joe Zitzelberger <joe_zitzelberger@xxxxxxxxxx>
- Date: Wed, 27 Jul 2005 20:47:31 -0400
In article <1122442700.675092.150020@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Praveen" <praveen.unnithan@xxxxxxxxx> wrote:
> 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.
I would need to know your full details -- e.g. version of CICS/TS,
internal/external translator -- of your installation.
FILE and DATASET are synonyms. The big difference with your two
examples is the automatic error handling of the second version, verses
the manual error handling of the first version.
If you specify the RESP keyword you must check it - it is the same as
if you specify the "NOHANDLE" keyword. Without it, CICS will trap many
abend conditions and end your task.
This works very similar to the Cobol "File-Status" keyword.
.
- References:
- Diffence between two CICS READ ; FILE & DATASET
- From: Praveen
- Diffence between two CICS READ ; FILE & DATASET
- Prev by Date: Re: sequential file formats
- Next by Date: Re: sequential file formats
- Previous by thread: Re: Diffence between two CICS READ ; FILE & DATASET
- Next by thread: Re: Diffence between two CICS READ ; FILE & DATASET
- Index(es):
Relevant Pages
|