[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: SQR and MVS - Communicating with Op. System



You can use SQR reserved variable #return-status to pass info to operating
system.. You can set the value of #return-status in your SQR and check that
value
in your O/S script.
I hope this helps to solve your problem.

Thanks,

Pradeep

> -----Original Message-----
> From: Dave Thorburn [SMTP:thorburn@CONL.NET]
> Sent: Thursday, July 06, 2000 1:49 PM
> To:   SQR-USERS@list.iex.net
> Subject:      SQR and MVS - Communicating with Op. System
>
> All,
>
> I have a problem with SQR and MVS JCL.  The output dataset
> from the SQR has been defined in the JCL and works perfectly.
>
> The Problem is that when the SQR creates no output records
> I am left with an empty dataset cataloged on MVS.
>
> Is there a way to pass information from the SQR to MVS that
> could be used to trigger a subsequent Job Step to delete the
> dataset    -or-
>
> Can someone suggest a way to resolve this situation without
> writing a COBOL program to check for a null dataset?
>
> How about MVS Utilities - Has any one used any of the 'IEB'
> or 'IEH' utilities to determine if a dataset is empty?
>
> Thanks,
>
> Dave
>
>
> ----------------
> Sent from a WebBox - http://www.webbox.com
> FREE Web based Email, Files, Bookmarks, Calendar, People and
> Great Ways to Share them with Others!