View previous topic :: View next topic |
Author |
Message |
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Tue Jun 21, 2005 6:43 am Post subject: how to load dataset using sysin |
|
|
Hi,
I have to create a dataset in one step and load data into that in the same job thru sysin card. Pls. suggest me how to do that.
thanks
nadh |
|
Back to top |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Tue Jun 21, 2005 7:01 am Post subject: |
|
|
nadh,
What exactly is the requirement? there are number of ways/utilities to do this. Are you inquiring about passing "in-stream'' data ?
//SYSIN DD *
Data
Data
Data
/*
You may also use delimiters if needed |
|
Back to top |
|
|
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Wed Jun 22, 2005 2:44 am Post subject: |
|
|
HI,
My requirement is as below
step1
:
//SYSIN DD *
A
B
V
/*
STEP2
// NEW DATA SET IS CREATED
If i submit this job the data in sysin should be in the new data set created. I tried with IEBGENER, but did not work out. pls. suggest me the jcl/utility.
Thanks
nadh |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Jun 22, 2005 2:57 am Post subject: |
|
|
Code: |
//STEPX EXEC PGM=IEBGENER
//SYSUT1 DD *
A
B
V
/*
//SYSUT2 DD DSN=NEW.DSN,DISP=(,CATLG,DELETE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
|
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
|
Posted: Wed Jun 22, 2005 4:45 am Post subject: |
|
|
Quote: |
If i submit this job the data in sysin should be in the new data set created. I tried with IEBGENER, but did not work out. pls. suggest me the jcl/utility.
|
Nadh,
When you say something does not work you need to provide us the details. In this case it would be the error messages from sysprint.
Super provided you with an example which will work and create the dataset as per your requirement. You just need to add the Space and DCB parameters to the JCL.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
nadh Intermediate
Joined: 08 Oct 2004 Posts: 192 Topics: 89
|
Posted: Wed Jun 22, 2005 5:35 am Post subject: |
|
|
thank you super
nadh |
|
Back to top |
|
|
|
|