Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Regarding creation of a gdg

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rohit jaiswal
Warnings : 2

New User


Joined: 09 Mar 2006
Posts: 36
Location: hyderabad,A.P

PostPosted: Tue Jul 18, 2006 2:11 pm    Post subject: Regarding creation of a gdg
Reply with quote

hi

i have a problem and hope to get a solution here.

i have to create a jcl in such a way that it reads a file which has few members and according to the members present i have to create the gdg's for that member name. all the gdg's that are going to be created has the same properties.

for example if the member name is abc then i have to create a gdc with name abc and also it versions.

regards
rohit
Back to top
View user's profile Send private message

vanji

New User


Joined: 26 Dec 2005
Posts: 7
Location: pune

PostPosted: Tue Jul 18, 2006 2:44 pm    Post subject:
Reply with quote

//GDGCRE JOB(DVLYD,DEV),'CRTE GDG',
// CLASS=S,
// MSGCLASS=T,
// MSGLEVEL=(1,1),
// REGION=4M
//PRC JCLLIB ORDER=MY.DATASET.FOR.PROC(GIVE WERE UR PROC LIES)
//GDG4 EXEC GDGC, (u should give the member name in that particular proc were ur GDG creation code lies)
// NOPRINT='*',
// DUMP='*'
// GDGNAME='ABCD'
//*

Here is the proc luks like this in MY.DATASET.FOR.PROC
//GDGC PROC NOPRINT='',
// DUMP=''
// GDGNAME=''
//*
//********************************************************************
//STEP010 EXEC PGM=IDCAMS,
// COND=(0,NE)
//********************************************************************
//*
//SYSOUT DD SYSOUT=&NOPRINT
//SYSPRINT DD SYSOUT=&NOPRINT
//SYSDBOUT DD SYSOUT=&DUMP
//SYSUDUMP DD SYSOUT=&DUMP
//*
DEFINE GDG -
(NAME(MY.GDG.&GDGNAME) -
SCRATCH -
LIMIT(31))
//*
Back to top
View user's profile Send private message
rohit jaiswal
Warnings : 2

New User


Joined: 09 Mar 2006
Posts: 36
Location: hyderabad,A.P

PostPosted: Tue Jul 18, 2006 2:50 pm    Post subject:
Reply with quote

hi vanji

thanks for the quick response but i think this is not going to help me as i have to read a file and depending on the member name i have to create a gdg with that name. can u please explain me the jcl which u have sent as it is not clear to me.

regards
rohit
Back to top
View user's profile Send private message
Sathyan_pune

New User


Joined: 27 Mar 2006
Posts: 2
Location: Pune

PostPosted: Tue Jul 18, 2006 4:42 pm    Post subject:
Reply with quote

Hi Rohit,

U can do this with the help of cobol Program and internal reader

OPEN INPUT SYS101
OUTPUT SYS201
MOVE '//jobname JOB...........' TO SYS210-REC.
WRITE SYS201-REC.
MOVE'//Stepname EXEC PGM=IDCAMS' TO SYS201-REC.
WRITE SYS201-REC.
MOVE '//SYSPRINT DD .....' TO SYS201-REC.
WRITE SYS201-REC.
MOVE '//SYSIN DD *' TO SYS201-REC.
WRITE SYS201-REC.
READ SYS101 .....
MOVE ' DEFINE GDG( -' TO SYS201-REC.
WRITE SYS201-REC.
MOVE ' NAME(' TO X-REC(1:6).
MOVE MEM-NAME OF SYS101-REC TO X-REC(7 : ??).
MOVE ' ) -' TO X-REC(7 + ?? + 1 : 4).
WRITE SYS201-REC FROM X-REC.
...
...
...
In JCL
...
...
...
//SYS201 DD SYSOUT=(*,INTRDR)
...
...


Regards
Sat
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISPF Tables Creation newsysprg TSO/ISPF 6 Wed Jul 13, 2016 2:21 pm
No new posts How to detect file creation event? vasanthz All Other Mainframe Topics 5 Fri May 20, 2016 1:33 am
No new posts New DB2 tables creation kishpra DB2 3 Tue Feb 02, 2016 7:00 pm
No new posts Creation of TPX screen GAURAVPAUL Java & MQSeries 2 Wed Dec 31, 2014 12:58 am
No new posts Rexx tool based on ISPF Table creation sakrat TSO/ISPF 1 Wed May 07, 2014 12:25 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us