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

BLDINDEX, Using PATH in OUTFILE instead of AIX.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 12, 2009 11:52 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts SET PATH in View DDL DB2 2
No new posts VSAM - Use of DEFINE PATH vs. DEFINE ... JCL & VSAM 13
No new posts Write OUTFILE by incrementing COUNT DFSORT/ICETOOL 5
No new posts for large files, can sort input &... DFSORT/ICETOOL 2
No new posts Search a string in a file, if found w... JCL & VSAM 4
Search our Forums:

Back to Top