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
 

 

Need sample code for GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need sample code for GDG
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: 1439
Location: Bangalore,India

PostPosted: Tue Jul 17, 2007 1:08 pm    Post subject:
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

Site Director


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

PostPosted: Tue Jul 17, 2007 9:27 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Jul 17, 2007 9:35 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Jul 18, 2007 12:01 pm    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Wed Jul 18, 2007 12:20 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Jul 19, 2007 8:11 pm    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Fri Jul 20, 2007 12:12 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Jul 20, 2007 2:42 pm    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Fri Jul 20, 2007 3:52 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Jul 20, 2007 4:03 pm    Post subject:
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: 680
Location: NJ

PostPosted: Fri Jul 20, 2007 5:13 pm    Post subject: Need sample code for GDG
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    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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


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