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
 

 

BLDINDEX, Using PATH in OUTFILE instead of AIX.

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

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Thu Mar 12, 2009 11:47 pm    Post subject: BLDINDEX, Using PATH in OUTFILE instead of AIX.
Reply with quote

Hi,

What's the BLDINDEX usage? In the OUTFILE parm should we put AIX or the PATH? I tried running with both and job went successfully for both the cases. Is there any difference in usage or it doesn't matter whether we use .PATH or the .AIX ?

Thanks in advance.

Code:

//S0 EXEC PGM=IDCAMS,COND=(4,LT)                   
//SYSPRINT DD SYSOUT=*                                   
//SYSIN    DD *                                           
 DELETE (<INFILE>.AIX) ALTERNATEINDEX PURGE               
  IF MAXCC > 8 THEN SET MAXCC = 16                       
  ELSE SET MAXCC = 0                                     
 DEFINE ALTERNATEINDEX (            -                     
  NAME   (<INFILE>.AIX)                           -       
  RELATE (<Infile>.KSDS)      -   
          UPGRADE )                 -                     
  DATA       (                      -                     
  NAME   (<INFILE>.AIX.D) -                               
  MODEL  (<Model>.AIX.D))-         
  INDEX  (                          -                     
  NAME   (<INFILE>.AIX.I))                               
  IF MAXCC > 8 THEN SET MAXCC = 16                       
  ELSE SET MAXCC = 0                                     
 DEFINE PATH (                      -                 
  NAME   (<INFILE>.PATH)                           - 
  PATHENTRY (<INFILE>.AIX)-                           
          UPDATE )                                   
/*
//S1 EXEC PGM=IDCAMS,COND=(4,LT)                             
//SYSPRINT DD SYSOUT=*                                             
//INDD     DD DSN=<Infile>.KSDS,DISP=SHR   
//OUTDD    DD DSN=<Infile>.PATH,DISP=SHR   
//SYSIN    DD *                                                   
  BLDINDEX INFILE(INDD) OUTFILE(OUTDD)                             
/*                                                                 
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8123
Location: East Dubuque, Illinois, USA

PostPosted: Thu Mar 12, 2009 11:52 pm    Post subject:
Reply with quote

The AMS manual says either alternate index or path works:
Quote:
8.1.1 Required Parameters

INFILE(ddname)|INDATASET(entryname)
names the DD statement or data set that identifies the base cluster or a path that points to the base cluster.

INFILE(ddname)
is the DD statement that identifies the base cluster or a path that points to the base cluster. You must define the base cluster in the same catalog as the alternate index, and it must contain at least one data record.

Abbreviation: IFILE

INDATASET(entryname)
names the data set that identifies the base cluster or a path that points to the base cluster. You must define the base cluster in the same catalog as the alternate index, and it must contain at least one data record.

When you use INDATASET to dynamically allocate the base-cluster volume, make sure the base-cluster volume is mounted as permanently resident or reserved.

Abbreviation: IDS

OUTFILE(ddname)|OUTDATASET(entryname)
names the DD statement or data set that identifies the alternate index or a path that points to the alternate index.
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 VSAM - Use of DEFINE PATH vs. DEFINE ... Abhi Nature JCL & VSAM 13 Wed Aug 19, 2015 4:35 pm
No new posts Write OUTFILE by incrementing COUNT techslam DFSORT/ICETOOL 5 Thu Sep 11, 2014 3:43 pm
No new posts for large files, can sort input &... quanzhong DFSORT/ICETOOL 2 Tue Jul 08, 2014 2:37 am
No new posts Search a string in a file, if found w... raghavmcs JCL & VSAM 4 Thu Mar 13, 2014 10:49 am
No new posts Easytrieve - Report Generation - Spac... yuvan CA Products 1 Wed Sep 18, 2013 11:23 am


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