IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need sample code for GDG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ram prasad

New User


Joined: 28 May 2007
Posts: 17
Location: india

PostPosted: Tue Jul 17, 2007 12:49 pm
Reply with quote

please give the sample code for GDG, it uses in realtime environment
ifelse give any URL
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Jul 17, 2007 1:08 pm
Reply with quote

Ram Prasad,

Did you go through manuals? Examples have been provided. Anyway, find the one you are looking for below -

Code:
//SPLIT  EXEC PGM=IDCAMS     
//SYSPRINT DD SYSOUT=*       
//SYSIN DD *                 
  DEFINE GDG ( -             
  NAME('HLQ.SLQ.TLQ') -       
  LIMIT(N) -                 
  NOSCRATCH -                 
  EMPTY)                     
/*         
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 17, 2007 9:27 pm
Reply with quote

Hello,

Please clarify what this means
Quote:
please give the sample code for GDG, it uses in realtime environment


What is "realtime environment"?

Which sample code are you looking for? The example posted will define a gdg. You will need other jcl to catalog entries in the gdg. If you are running something "realtime", jcl may not be what you are looking for.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jul 17, 2007 9:35 pm
Reply with quote

dick scherrer wrote:
What is "realtime environment"?


That's a question that I've been asking for four years. No one's ever bothered to answer. icon_evil.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jul 18, 2007 12:01 pm
Reply with quote

Quote:
What is "realtime environment"?

Hi,

There are some institutes in market who teach Mainframes on some type of simulated environment.
They use Excel as database, some weired way to SUBmit JCL & compile the COBOL program. I think the folks coming from these institutes distinguish the actual Mainframe environment & that simulated environment with the pharse "realtime environment".
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Jul 18, 2007 12:20 pm
Reply with quote

Anuj,

Quote:
They use Excel as database, some weired way to SUBmit JCL & compile the COBOL program. I think the folks coming from these institutes distinguish the actual Mainframe environment & that simulated environment with the pharse "realtime environment".


I am not sure about simulated environment. Does the functionality change between 'simulated' and 'real time' environment?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jul 19, 2007 8:11 pm
Reply with quote

Murali,

What type of functionality you are talking about, didn't get you clearly. icon_neutral.gif
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Jul 20, 2007 12:31 am
Reply with quote

Back in the "Olden Dayze" a "realtime environment" was an "on-line environment".
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Jul 20, 2007 12:12 pm
Reply with quote

Jack,
Quote:
Back in the "Olden Dayze" a "realtime environment" was an "on-line environment".

Thanks.

Anuj,
Quote:
What type of functionality you are talking about, didn't get you clearly

Assuming the step provided above is executed in the simulated environment, does it do other thing (other than creating a GDG base)?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jul 20, 2007 2:42 pm
Reply with quote

Murali,

No, code will not generate any GDG base nor will do any other thing.

By definition , IDCAMS is Integrated Catalog Access Method Services. Which is an IBM program used to process access method services (AMS), that simulated environment has nothing to do with AMS, so this utility can't work there. Usually these environment are made to work on Microsoft Technologies & IDCAMS is an IBM product. To run IDCAMS on windows, I think we need some sort of third party tools(not sure), still in back-end IDCAMS has to run on Mainframes.
I worked on CAreala, this could understand only some COBOL syntax & JCL syntax with limitations. Limitations such as if I wrote PGM=PGM1, then I need to give a proper path for the .exe load module of PGM1; while if I gave PGM=IDCAMS then it didn't work because I did't had any .exe file for IDCAMS there in that environment.

Hope it helps.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Jul 20, 2007 3:52 pm
Reply with quote

Anuj,

Quote:
code will not generate any GDG base nor will do any other thing.


Ok. I got it now why Ram Prasad wanted sample GDG code used in 'Real Environment'.

Thanks for the info.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jul 20, 2007 4:03 pm
Reply with quote

murmohk1 wrote:
Ok. I got it now why Ram Prasad wanted sample GDG code used in 'Real Environment'.

Fair enough. icon_smile.gif
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Fri Jul 20, 2007 5:13 pm
Reply with quote

Hi,

You can give

Code:
 LISTCAT ENTRIES (HLQ.SLQ.TLQ)-   
    NONVSAM VOLUMES 

After defining the GDG ...Then get it working on ..
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top