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
 

 

JCL to create an alias for a dataset

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

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Mon Sep 24, 2007 3:40 pm    Post subject: JCL to create an alias for a dataset
Reply with quote

In my site i have seen alias referring to datasets. The alias remains the same even when the dataset that is referred changes. I tried creating an alias but was not able to create the same. I searched and googled but coudn't get a JCL. I need a JCL to create an alias for a dataset.
Back to top
View user's profile Send private message

murmohk1

Senior Member


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

PostPosted: Mon Sep 24, 2007 3:51 pm    Post subject:
Reply with quote

Aaru,

Quote:
referring to datasets

You mean flat files.

Quote:
In my site i have seen

Why dont you speak with your team/shop people and let us know how are you doing the same?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Mon Sep 24, 2007 4:11 pm    Post subject: Reply to: JCL to create an alias for a dataset
Reply with quote

Quote:
You mean flat files.


No, PDS. Let me explain. I have an alias HLQ.XXXX.PDS. When i open this PDS HLQ.YYYY.CYCLE.ZZZZ opens with all the members. We keep creating new datasets with the new CYCLE no but retain the same alias name. I want to know how this is done?

Quote:

Why dont you speak with your team/shop people and let us know how are you doing the same?


Is alias not a general term? I guess most of the shops would use this and i dont think this is site-specific. Sure I will wait for few more replies and shall ask my shop people after that.

Thanks murali for the details.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Mon Sep 24, 2007 4:16 pm    Post subject: Reply to: JCL to create an alias for a dataset
Reply with quote

Why don' t You take a look at the idcams documentation ??

regards

e.s
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Mon Sep 24, 2007 4:38 pm    Post subject: Reply to: JCL to create an alias for a dataset
Reply with quote

Thanka a lot enrico. I tried with IDCAMS and it worked.

Code:

//STEP1 EXEC PGM=IDCAMS                               
//SYSPRINT DD SYSOUT=*                               
//SYSIN DD *                                         
 DEFINE ALIAS (NAME(HLQ.ALIAS)         -     
               RELATE(HLQ.TEST.COBO1))       
/*                                                   
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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am


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