VSAM file is not created using IDCAMS.

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
Vivek Soni
New Member
Posts: 8
Joined: Sun Aug 17, 2014 8:36 am

VSAM file is not created using IDCAMS.

Post by Vivek Soni »

Hi,


Please see, if there is some problem with the below JCL?

Code: Select all

//VSAMSTEP JOB (@),CLASS=M,MSGLEVEL=(1,1)
//             NOTIFY=&SYSUID,MSGCLASS=A   
//STEP0001 EXEC PGM=IDCAMS                 
//SYSIN    DD  *                           
    DEFINE CLUSTER -                       
       (NAME(MY.VSAM.FILE) -   
       VOL(xxx20) -                   
       KEYS(15 0) -                    
       RECORDSIZE(100 100) -           
       INDEXED -                       
       REUSE ) -                       
    DATA -                                 
      (NAME(MY.VSAM.FILE.DATA) - 
      CISZ(8192) -                      
      RECORDSIZE(100 100) -             
    INDEX -                                
      (NAME(MY.VSAM.FILE.INDEX) )
//SYSPRINT DD  SYSOUT=*                    
/*                      
//*
Job executes fine with MAXCC=00. But the the VSAM I created above does not show up in ISPF 3.4. Can anyone help me on this?
Last edited by Anuj Dhawan on Fri Mar 18, 2016 6:02 pm, edited 2 times in total.
Reason: Added code tags.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: VSAM file is not created using IDCAMS.

Post by William Collins »

Paste the output from file two in the spool, the JESJCL.

When you say MAXCC=00, do you mean from the NOTIFY, or the output from IDCAMS, or both?

Paste the output from IDCAMS, the file three in the spool.
Last edited by William Collins on Fri Mar 18, 2016 9:17 pm, edited 1 time in total.
Reason: Anuj got rid of the blank lines referred to... even though one or more of them was probably the problem :-)
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: VSAM file is not created using IDCAMS.

Post by Robert Sample »

From a casual scan of your JCL, I doubt that your VSAM data set (NOT a file -- files only exist in z/OS under Unix System Services and VSAM data sets are not built under Unix System Services) is being created.  You have a /* after //SYSPRINT -- which probably gets a //SYSIN DD * generated in front of it, in which case your entire //SYSIN will not be executed.
Show us the job output to be sure -- and you should have put the job output in your original post since that makes it MUCH easier to diagnose issues.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: VSAM file is not created using IDCAMS.

Post by William Collins »

The first SYSIN will be processed, where multiple exist. Although the /* will cause a //SYSIN DD * card to be generated, it will not affect the IDCAMS control cards in the first SYSIN. If at least one of the... now somewhat missing... blank lines exist in the actual JCL, that will cause the generation of the first SYSIN in the step, which will then be used by IDCAMS giving something like:

Code: Select all

IDCAMS  SYSTEM SERVICES                                           TIME: hh:mm:ss        Date----     PAGE      1
                                                                                                                
                                                                        lineno--                                
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0                                               
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”