MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to load dataset using sysin

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Tue Jun 21, 2005 6:43 am    Post subject: how to load dataset using sysin Reply with quote

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
View user's profile Send private message Send e-mail
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue Jun 21, 2005 7:01 am    Post subject: Reply with quote

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
View user's profile Send private message
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Wed Jun 22, 2005 2:44 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Jun 22, 2005 2:57 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Wed Jun 22, 2005 4:45 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Wed Jun 22, 2005 5:35 am    Post subject: Reply with quote

thank you super

nadh
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group