x27;s when I noticed
that the linked documentation was for z/OS 2.5.
-Original Message-
From: IBM Mainframe Discussion List On Behalf Of
Paul Gilmartin
Sent: Tuesday, February 6, 2024 5:30 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Generate a data set with record numbers?
On Tue, 6 F
On Tue, 6 Feb 2024 16:18:16 -0600, Michael Schmitt wrote:
>Reason I never knew you could have a sequential SYSEXEC is I'm on z/OS 2.4.
>This capability is added in z/OS 2.5.
>
It has long been possible according to lore. A resourceful programmer
looked at the control block description where was
hricht-
>Von: IBM Mainframe Discussion List Im Auftrag von
>Schmitt, Michael
>Gesendet: Freitag, 15. September 2023 22:20
>An: IBM-MAIN@LISTSERV.UA.EDU
>Betreff: [IBM-MAIN] Generate a data set with record numbers?
>
>I want to generate a data set that has the record num
lusu
Sent: Friday, September 15, 2023 5:01 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Generate a data set with record numbers?
>> The question is, what's the simplest way to do this with a *standard* z/OS
>> utility (i.e. that comes with z/OS), or with a standard sort
Sent: Monday, September 18, 2023 1:47 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: AW: Generate a data set with record numbers?
Hi Michael,
you could directly run the REXX as in-stream in the JCL:
https://www.ibm.com/docs/en/zos/2.5.0?topic=routine-using-irxjcl-execute-in-stream-rexx-exec
Best re
5:01 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Generate a data set with record numbers?
>> The question is, what's the simplest way to do this with a *standard* z/OS
>> utility (i.e. that comes with z/OS), or with a standard sort product (e.g.
>> DFSORT or SyncSort), where
Ah, INDEX was the parameter I needed.
-Original Message-
From: IBM Mainframe Discussion List On Behalf Of
Bill Godfrey
Sent: Friday, September 15, 2023 4:31 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Generate a data set with record numbers?
On Fri, 15 Sep 2023 20:19:32 +, Schmitt
On Mon, 18 Sep 2023 06:46:58 +, Beate Kawelke wrote:
>
>you could directly run the REXX as in-stream in the JCL:
>https://www.ibm.com/docs/en/zos/2.5.0?topic=routine-using-irxjcl-execute-in-stream-rexx-exec
>
Where I read:
When the first non-blank name in the parm data passed to IRXJCL
: Freitag, 15. September 2023 22:20
An: IBM-MAIN@LISTSERV.UA.EDU
Betreff: [IBM-MAIN] Generate a data set with record numbers?
I want to generate a data set that has the record number on each line, such as:
RECORD 1
RECORD 2
RECORD 3
Or
RECORD 1
RECORD 2
RECORD 3
Perhaps I want to
>> The question is, what's the simplest way to do this with a *standard* z/OS
>> utility (i.e. that comes with z/OS), or with a standard sort product (e.g.
>> DFSORT or SyncSort), where it is all in a self-contained job?
Michael,
DFSORT can generate the sequenced records quite easily. Use the f
On Fri, 15 Sep 2023 20:55:21 +, Schmitt, Michael wrote:
>Can you run the shell script from JCL?
>
Probably as STDENV to BPXBATCH.
Simpler as STDIN to COZBATCH or AOPBATCH, but those
aren't base z/OS utilities.
>-Original Message-
>From: Paul Gilmartin
>Sent: Friday, September 15, 202
On Fri, 15 Sep 2023 20:19:32 +, Schmitt, Michael wrote:
For 80-byte records:
//DG EXEC PGM=IEBDG
//SYSPRINT DD SYSOUT=*
//OUTDDDD DSN=USERID.IEBDG.DATA,DISP=SHR
//SYSINDD *
DSD OUTPUT=(OUTDD)
FD NAME=REC,LENGTH=7,STARTLOC=1,PICTURE=7,'RECORD '
FD NAME=SEQ,LENGTH=5,FORMAT=ZD
You can run the below in batch and point systsprt to disk
/* REXX */
do x = 1 to 100
Say "RECORD " || X
End
--
For IBM-MAIN subscribe / signoff / archive access
Look up the SEQNUM operand in your sort reference
-Original Message-
From: IBM Mainframe Discussion List On Behalf Of
Schmitt, Michael
Sent: Friday, September 15, 2023 1:20 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Generate a data set with record numbers?
I want to generate a data set
On Behalf Of
Paul Gilmartin
Sent: Friday, September 15, 2023 3:45 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Generate a data set with record numbers?
On Fri, 15 Sep 2023 20:19:32 +, Schmitt, Michael wrote:
>I want to generate a data set that has the record number on each line, such as
On Fri, 15 Sep 2023 20:19:32 +, Schmitt, Michael wrote:
>I want to generate a data set that has the record number on each line, such as:
>
>RECORD 1
>RECORD 2
>RECORD 3
>
A shell solution:
#! /bin/sh +x
R=0
while R=$(( $R + 1 )); [ 10 -ge $R ]
do
echo "Record $R"
done
I'm confident you
I want to generate a data set that has the record number on each line, such as:
RECORD 1
RECORD 2
RECORD 3
Or
RECORD 1
RECORD 2
RECORD 3
Perhaps I want to generate 1,000 records. Or 10,000.
The question is, what's the simplest way to do this with a *standard* z/OS
utility (i.e. th
17 matches
Mail list logo