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 

Creating PS

 
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
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Fri Dec 03, 2004 4:10 pm    Post subject: Creating PS Reply with quote

Hi,
How can I create a file using batch job. Here I will not copy from any file.
I want to just create an empty file with specified parameters like DCB=, Space=,disp=
_________________
Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Dec 03, 2004 4:47 pm    Post subject: Reply with quote

Sarangadhar,

This is a very basic question. You can use IEFBR14 or IEBGENER to create an empty file.

Code:

//STEP0100 EXEC PGM=IEFBR14                       
//FILE01   DD DSN=YOUR TO BE CREATED DSN NAME,
//            DISP=(NEW,CATLG,DELETE),             
//            UNIT=SYSDA,                         
//            SPACE=(CYL,(X,Y),RLSE),             
//            DCB=(LRECL=ZZZ,RECFM=XX,BLKSIZE=0)
/*


OR

Code:

//STEP0100 EXEC PGM=IEBGENER                   
//SYSPRINT DD  SYSOUT=*                         
//SYSUT1   DD  DUMMY,
//             DCB=(LRECL=ZZZ,RECFM=XX,BLKSIZE=0)
//SYSUT2   DD  DSN=YOUR TO BE CREATED DSN NAME,         
//             DISP=(NEW,CATLG,DELETE),           
//             SPACE=(CYL,(X,Y),RLSE)           
//SYSIN    DD  DUMMY               


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Sun Dec 05, 2004 2:52 am    Post subject: Reply with quote

Thanks Kolusu, I didn't think before posting..Sorry man.
Initially, I tried with DUMMY without specifying DCB parameters, it gave error. I don't know that we can give DCB for DUMMY before posting.
_________________
Thanks
Back to top
View user's profile Send private message
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