Discussion:
CLIST Example [1 Attachment]
Gerhard Postpischil
2010-08-07 21:39:52 UTC
Permalink
I think Mike was asking about the substitution process, as all
those ampersands and apostrophes can get confusing. I lost my
system Monday night (bad weather, blew two UPSs and my main
system; backup system blew a fan; third backup has a short in
the motherboard someplace and blew the monitor. Still working on
getting another machine configured and backed up before
installing stuff, otherwise I'd have a tested version)

-------- Original Message --------
Subject: CLIST Example
Date: Sat, 7 Aug 2010 12:50:41 -0700
From: Scott Cosel <SCosel-zowzMcKzJCWxC8Nw+***@public.gmane.org>
To: Mike Stramba <mikestramba-***@public.gmane.org>
CC: gerhard-sTLh940vhFCsTnJN9+***@public.gmane.org <gerhard-sTLh940vhFCsTnJN9+***@public.gmane.org>



My posts on turnkey-mvs do not seem to be approved by the
moderators on a timely basis, so here you go:

PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
ALLOCATE DD(SYSUT1) DA('HERC01.SEQDATA.DATA') SHR REUSE
ALLOCATE DD(SYSUT2) DA('HERC01.JCL.CNTL(SEQDATA)') SHR REUSE
ALLOCATE DD(SYSIN) DUMMY REUSE
ALLOCATE DD(SYSPRINT) DA(*) REUSE
CALL 'SYS1.LINKLIB(IEBGENER)'
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
EXIT

Assume the above is stored in HERC01.PDS.CLIST(MIKE)

Invoke at READY prompt with:

EX 'HERC01.PDS.CLIST(MIKE)' 'DEBUG'

the DEBUG part is optional.
The above example assumes both datasets pre-exist.

To allocate an output sequential dataset use this instead:

ALLOCATE DD(SYSUT2) DA('HERC01.OUTSEQ.DATA') NEW REUSE +
TRACK SPACE(10 5) DSORG(PS) RECFM(F B) +
LRECL(80) BLKSIZE(6160) CATALOG

So yes; The output can be a sequential dataset.

ScottC

P.S. Perhaps one of you can post this, as your posts are
displayed without approval by the moderators.


----------------------------------------------------------------
CONFIDENTIAL NOTICE: All information, data and attachments
contained in this message are confidential and are the property
of the sender. If you are not the intended recipient and have
received this email in error delete it immediately and destroy
all copies. Any redistribution, communication or actions taken
on information contained in this message is strictly prohibited.
--
Gerhard Postpischil
Bradford, VT
Mike Stramba
2010-08-07 22:04:24 UTC
Permalink
Gerhard,

Your attachment didn't work

If you can send it to me direct at mikestramba-***@public.gmane.org, that would
be great, or if you want to put it in the files section on yahoo
groups, whatever is easier.

Mike
Post by Gerhard Postpischil
I think Mike was asking about the substitution process, as all
those ampersands and apostrophes can get confusing. I lost my
system Monday night (bad weather, blew two UPSs and my main
system; backup system blew a fan; third backup has a short in
the motherboard someplace and blew the monitor. Still working on
getting another machine configured and backed up before
installing stuff, otherwise I'd have a tested version)
-------- Original Message --------
Subject: CLIST Example
Date: Sat, 7 Aug 2010 12:50:41 -0700
My posts on turnkey-mvs do not seem to be approved by the
PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
ALLOCATE DD(SYSUT1) DA('HERC01.SEQDATA.DATA') SHR REUSE
ALLOCATE DD(SYSUT2) DA('HERC01.JCL.CNTL(SEQDATA)') SHR REUSE
ALLOCATE DD(SYSIN) DUMMY REUSE
ALLOCATE DD(SYSPRINT) DA(*) REUSE
CALL 'SYS1.LINKLIB(IEBGENER)'
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
EXIT
Assume the above is stored in HERC01.PDS.CLIST(MIKE)
EX 'HERC01.PDS.CLIST(MIKE)' 'DEBUG'
the DEBUG part is optional.
The above example assumes both datasets pre-exist.
ALLOCATE DD(SYSUT2) DA('HERC01.OUTSEQ.DATA') NEW REUSE +
TRACK SPACE(10 5) DSORG(PS) RECFM(F B) +
LRECL(80) BLKSIZE(6160) CATALOG
So yes; The output can be a sequential dataset.
ScottC
P.S. Perhaps one of you can post this, as your posts are
displayed without approval by the moderators.
----------------------------------------------------------------
CONFIDENTIAL NOTICE: All information, data and attachments
contained in this message are confidential and are the property
of the sender. If you are not the intended recipient and have
received this email in error delete it immediately and destroy
all copies. Any redistribution, communication or actions taken
on information contained in this message is strictly prohibited.
--
Gerhard Postpischil
Bradford, VT
Gerhard Postpischil
2010-08-07 22:17:08 UTC
Permalink
Post by Mike Stramba
Gerhard,
Your attachment didn't work
The attachment was just some garbage from Outlook with
forwarding and source info. The CLIST is in the text - edit a
new member in RPF, do an I12 (or more) line command, and cut and
paste the text from PROC 0 to END
Post by Mike Stramba
Post by Gerhard Postpischil
PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF&DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
ALLOCATE DD(SYSUT1) DA('HERC01.SEQDATA.DATA') SHR REUSE
ALLOCATE DD(SYSUT2) DA('HERC01.JCL.CNTL(SEQDATA)') SHR REUSE
ALLOCATE DD(SYSIN) DUMMY REUSE
ALLOCATE DD(SYSPRINT) DA(*) REUSE
CALL 'SYS1.LINKLIB(IEBGENER)'
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
EXIT
Gerhard Postpischil
Bradford, VT
Gerhard Postpischil
2010-08-07 22:50:48 UTC
Permalink
<*>[Attachment(s) from Gerhard Postpischil included below]

And one more:

-------- Original Message --------
Subject: FW: [turnkey-mvs] Fwd: CLIST Example
Date: Sat, 7 Aug 2010 15:26:39 -0700
From: Scott Cosel <SCosel-zowzMcKzJCWxC8Nw+***@public.gmane.org>
To: gerhard-sTLh940vhFCsTnJN9+***@public.gmane.org <gerhard-sTLh940vhFCsTnJN9+***@public.gmane.org>
CC: Mike Stramba <mikestramba-***@public.gmane.org>, Ron Hudson
<hudson.ra-***@public.gmane.org>



Evidently, REUSE wasn’t invented yet under MVS 3.8j. So Mike
should try this version:

PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
ALLOCATE DD(SYSUT1) DA('HERC01.SEQDATA.DATA') SHR
ALLOCATE DD(SYSUT2) DA('HERC01.JCL.CNTL(SEQDATA)') SHR
ALLOCATE DD(SYSIN) DUMMY
ALLOCATE DD(SYSPRINT) DA(*)
CALL 'SYS1.LINKLIB(IEBGENER)'
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
EXIT



<*>Attachment(s) from Gerhard Postpischil:


<*> 1 of 1 File(s) http://groups.yahoo.com/group/turnkey-mvs/attachments/folder/1803548189/item/list
<*> Attached Message Part

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/turnkey-mvs/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/turnkey-mvs/join
(Yahoo! ID required)

<*> To change settings via email:
turnkey-mvs-digest-***@public.gmane.org
turnkey-mvs-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
turnkey-mvs-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Greg Price
2010-08-10 08:30:09 UTC
Permalink
You can apply USERMOD ZP60026 from
http://www.prycroft6.com.au/vs2mods
to add REUSE to ALLOCATE.

Also, if you don't want to fiddle with SYSPRINT and SYSIN
files, you could have a CLIST like:

PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
FREE DD(INDD OUTDD)
ALLOCATE DD(INDD) DA('HERC01.SEQDATA.DATA') SHR
ALLOCATE DD(OUTDD) DA('HERC01.JCL.CNTL(SEQDATA)') SHR
REPRO INFILE(INDD) OUTFILE(OUTDD)
FREE DD(INDD OUTDD)
EXIT

Cheers,
Greg
Evidently, REUSE wasnt invented yet under MVS 3.8j. So Mike
PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
ALLOCATE DD(SYSUT1) DA('HERC01.SEQDATA.DATA') SHR
ALLOCATE DD(SYSUT2) DA('HERC01.JCL.CNTL(SEQDATA)') SHR
ALLOCATE DD(SYSIN) DUMMY
ALLOCATE DD(SYSPRINT) DA(*)
CALL 'SYS1.LINKLIB(IEBGENER)'
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
EXIT
au1john
2010-08-10 08:56:07 UTC
Permalink
Hmm, I was going to do a manual reformat of Greg's post, but when I hit
reply, the message was formatted as I would expect it.

Let's see how this looks when it comes back to me.


-----Original Message-----
From: turnkey-mvs-***@public.gmane.org [mailto:turnkey-mvs-***@public.gmane.org] On
Behalf Of Greg Price
Sent: Tuesday, 10 August 2010 18:30
To: turnkey-mvs-***@public.gmane.org
Subject: Re: Fwd: FW: [turnkey-mvs] Fwd: CLIST Example

You can apply USERMOD ZP60026 from
http://www.prycroft6.com.au/vs2mods
to add REUSE to ALLOCATE.

Also, if you don't want to fiddle with SYSPRINT and SYSIN
files, you could have a CLIST like:

PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
FREE DD(INDD OUTDD)
ALLOCATE DD(INDD) DA('HERC01.SEQDATA.DATA') SHR
ALLOCATE DD(OUTDD) DA('HERC01.JCL.CNTL(SEQDATA)') SHR
REPRO INFILE(INDD) OUTFILE(OUTDD)
FREE DD(INDD OUTDD)
EXIT

Cheers,
Greg
Evidently, REUSE wasnt invented yet under MVS 3.8j. So Mike
PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
ALLOCATE DD(SYSUT1) DA('HERC01.SEQDATA.DATA') SHR
ALLOCATE DD(SYSUT2) DA('HERC01.JCL.CNTL(SEQDATA)') SHR
ALLOCATE DD(SYSIN) DUMMY
ALLOCATE DD(SYSPRINT) DA(*)
CALL 'SYS1.LINKLIB(IEBGENER)'
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
EXIT
------------------------------------

Yahoo! Groups Links
au1john
2010-08-10 09:03:04 UTC
Permalink
Nah, still wrong when it came back.

Manual entry now...

PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
FREE DD(INDD OUTDD)
ALLOCATE DD(INDD) DA('HERC01.SEQDATA.DATA') SHR
ALLOCATE DD(OUTDD) DA('HERC01.JCL.CNTL(SEQDATA)') SHR
REPRO INFILE(INDD) OUTFILE(OUTDD)
FREE DD(INDD OUTDD)
EXIT

-----Original Message-----
From: turnkey-mvs-***@public.gmane.org [mailto:turnkey-mvs-***@public.gmane.org] On
Behalf Of au1john
Sent: Tuesday, 10 August 2010 18:56
To: turnkey-mvs-***@public.gmane.org
Subject: RE: Fwd: FW: [turnkey-mvs] Fwd: CLIST Example

Hmm, I was going to do a manual reformat of Greg's post, but when I hit
reply, the message was formatted as I would expect it.

Let's see how this looks when it comes back to me.


-----Original Message-----
From: turnkey-mvs-***@public.gmane.org [mailto:turnkey-mvs-***@public.gmane.org] On
Behalf Of Greg Price
Sent: Tuesday, 10 August 2010 18:30
To: turnkey-mvs-***@public.gmane.org
Subject: Re: Fwd: FW: [turnkey-mvs] Fwd: CLIST Example

You can apply USERMOD ZP60026 from
http://www.prycroft6.com.au/vs2mods
to add REUSE to ALLOCATE.

Also, if you don't want to fiddle with SYSPRINT and SYSIN
files, you could have a CLIST like:

PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
FREE DD(INDD OUTDD)
ALLOCATE DD(INDD) DA('HERC01.SEQDATA.DATA') SHR
ALLOCATE DD(OUTDD) DA('HERC01.JCL.CNTL(SEQDATA)') SHR
REPRO INFILE(INDD) OUTFILE(OUTDD)
FREE DD(INDD OUTDD)
EXIT

Cheers,
Greg
Evidently, REUSE wasnt invented yet under MVS 3.8j. So Mike
PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
ALLOCATE DD(SYSUT1) DA('HERC01.SEQDATA.DATA') SHR
ALLOCATE DD(SYSUT2) DA('HERC01.JCL.CNTL(SEQDATA)') SHR
ALLOCATE DD(SYSIN) DUMMY
ALLOCATE DD(SYSPRINT) DA(*)
CALL 'SYS1.LINKLIB(IEBGENER)'
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
EXIT
------------------------------------

Yahoo! Groups Links






------------------------------------

Yahoo! Groups Links
au1john
2010-08-10 09:04:11 UTC
Permalink
I give up!! Hayoo groups is stuffed!!

-----Original Message-----
From: turnkey-mvs-***@public.gmane.org [mailto:turnkey-mvs-***@public.gmane.org] On
Behalf Of au1john
Sent: Tuesday, 10 August 2010 19:03
To: turnkey-mvs-***@public.gmane.org
Subject: RE: Fwd: FW: [turnkey-mvs] Fwd: CLIST Example

Nah, still wrong when it came back.

Manual entry now...

PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
FREE DD(INDD OUTDD)
ALLOCATE DD(INDD) DA('HERC01.SEQDATA.DATA') SHR
ALLOCATE DD(OUTDD) DA('HERC01.JCL.CNTL(SEQDATA)') SHR
REPRO INFILE(INDD) OUTFILE(OUTDD)
FREE DD(INDD OUTDD)
EXIT

-----Original Message-----
From: turnkey-mvs-***@public.gmane.org [mailto:turnkey-mvs-***@public.gmane.org] On
Behalf Of au1john
Sent: Tuesday, 10 August 2010 18:56
To: turnkey-mvs-***@public.gmane.org
Subject: RE: Fwd: FW: [turnkey-mvs] Fwd: CLIST Example

Hmm, I was going to do a manual reformat of Greg's post, but when I hit
reply, the message was formatted as I would expect it.

Let's see how this looks when it comes back to me.


-----Original Message-----
From: turnkey-mvs-***@public.gmane.org [mailto:turnkey-mvs-***@public.gmane.org] On
Behalf Of Greg Price
Sent: Tuesday, 10 August 2010 18:30
To: turnkey-mvs-***@public.gmane.org
Subject: Re: Fwd: FW: [turnkey-mvs] Fwd: CLIST Example

You can apply USERMOD ZP60026 from
http://www.prycroft6.com.au/vs2mods
to add REUSE to ALLOCATE.

Also, if you don't want to fiddle with SYSPRINT and SYSIN
files, you could have a CLIST like:

PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
FREE DD(INDD OUTDD)
ALLOCATE DD(INDD) DA('HERC01.SEQDATA.DATA') SHR
ALLOCATE DD(OUTDD) DA('HERC01.JCL.CNTL(SEQDATA)') SHR
REPRO INFILE(INDD) OUTFILE(OUTDD)
FREE DD(INDD OUTDD)
EXIT

Cheers,
Greg
Evidently, REUSE wasnt invented yet under MVS 3.8j. So Mike
PROC 0 DEBUG
CONTROL MAIN NOPROMPT NOMSG
IF &DEBUG = DEBUG THEN CONTROL MSG CONLIST SYMLIST
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
ALLOCATE DD(SYSUT1) DA('HERC01.SEQDATA.DATA') SHR
ALLOCATE DD(SYSUT2) DA('HERC01.JCL.CNTL(SEQDATA)') SHR
ALLOCATE DD(SYSIN) DUMMY
ALLOCATE DD(SYSPRINT) DA(*)
CALL 'SYS1.LINKLIB(IEBGENER)'
FREE DD(SYSUT1 SYSUT2 SYSIN SYSPRINT)
EXIT
------------------------------------

Yahoo! Groups Links






------------------------------------

Yahoo! Groups Links






------------------------------------

Yahoo! Groups Links

Loading...