Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to Create Non VSAM file Using IDCAMS

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

New User


Joined: 14 Jun 2005
Posts: 2

PostPosted: Mon Jul 04, 2005 8:48 pm    Post subject: How to Create Non VSAM file Using IDCAMS
Reply with quote

Hi Friends
I wanted to know
Is this possible to create NonVSAM file using IDCAMS ..? If yes please let me how can we create..?

thanks
Sharad
Back to top
View user's profile Send private message

MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Mon Jul 04, 2005 9:35 pm    Post subject:
Reply with quote

Do you want to create a empty sequential dataset with IDCAMS?
Try with this:
Code:
//STEP010I EXEC PGM=IDCAMS                                     
//SYSPRINT DD SYSOUT=*                                         
//INPUT    DD DISP=(,CATLG,DELETE),LRECL=XX,RECFM=FB,         
//            SPACE=(X,(1,1),RLSE),DSN=MYDATASET
//SYSIN    DD DUMMY                                           

for me it work very fine.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Jul 05, 2005 9:31 am    Post subject:
Reply with quote

Hi MGIndaco,

Your ans is a little misleading. Although IDCAMS is entered using your JCL, it's the system initiator/terminator that "creates the ds.

I'd be interested to see if the created ds can be opened as I/P. My bet is that you can't.

If you can then I'm wrong and IDCAMS does do something to "create" the file, but I doubt it.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Tue Jul 05, 2005 2:13 pm    Post subject:
Reply with quote

I think that my error happen in BLOCKSIZE... but in each case the file is created correctly and work fine for me... I tested it and I'm sure of this... I hope only in a my good understanding of your bet.

Code:
//STEP010I EXEC PGM=IDCAMS                                     
//SYSPRINT DD SYSOUT=*                                         
//INPUT    DD DISP=(,CATLG,DELETE),LRECL=XX,RECFM=FB,BLKSIZE=xxxx,         
//            SPACE=(X,(1,1),RLSE),DSN=MYDATASET
//SYSIN    DD DUMMY


The sample above is better?
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue Jul 05, 2005 6:14 pm    Post subject: Re: How to Create Non VSAM file Using IDCAMS
Reply with quote

Code:

//STEP1    EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN    DD *
  DEFINE    NONVSAM                                     
            (  NAME('ENTRYNAME')                         
               VOLUMES('VOLSER' ...)                     
               DEVICETYPES('DEVTYPE' ...)               
               COLLECTION                               
               FILESEQUENCENUMBERS('NUMBER' ...)         
               OWNER('OWNERID')                         
               TO('DATE') | FOR('DAYS')                 
               RECATALOG | NORECATALOG  )               
               CATALOG('CATNAME/PASSWORD')                 

REQUIRED - NONVSAM, NAME, DEVICETYPES, VOLUMES
Back to top
View user's profile Send private message
nandakumar
Warnings : 2

New User


Joined: 05 May 2005
Posts: 50

PostPosted: Thu Jul 07, 2005 9:56 pm    Post subject: create NonVSAM file using IDCAMS
Reply with quote

hi superk,

i tried ur example prog,but no data set was created.

i dont know what values should i code in the following sub-parameter:

catalog('catname/password')

1)what does the parameter catalog means?
2)what should i code for "catname"

why i am asking is,os rejects the key word "catalog"
it says "catalog verb improper".
Also explain brifly about all other parameters in ur examplle.
3)how to create ps and pds with idcams with example ?



thanking u.



[/quote]
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Thu Jul 07, 2005 11:06 pm    Post subject: Re: How to Create Non VSAM file Using IDCAMS
Reply with quote

In TSO, enter TSO HELP DEFNVSAM and you will see the descriptions of all the parameters, after which you will probably know as much about this function as I do. I've never seen this function used in the real world. The more I look at the description, the more I wonder where it would ever be used.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Thu Jul 07, 2005 11:18 pm    Post subject: Re: How to Create Non VSAM file Using IDCAMS
Reply with quote

Sorry, my bad!

You want to use the ALLOCATE command. In TSO, enter TSO HELP ALLOCATE for all of the parameters:

Code:

//STEP0001 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
  DELETE MYSEQ                                       
  ALLOCATE DATASET(MYSEQ) NEW REUSE CATALOG -         
  UNIT(SYSDA) RECFM(F B) LRECL(80) BLKSIZE(0) -     
  SPACE(10,10) CYLINDERS                           
  DELETE MYPDS                                       
  ALLOCATE DATASET(MYPDS) NEW REUSE CATALOG -         
  UNIT(SYSDA) RECFM(F B) LRECL(80) BLKSIZE(0) -     
  SPACE(10,10) CYLINDERS DIR(92)                   
/*
//*
Back to top
View user's profile Send private message
nandakumar
Warnings : 2

New User


Joined: 05 May 2005
Posts: 50

PostPosted: Thu Jul 14, 2005 9:19 pm    Post subject: regarding idcams
Reply with quote

hi superk,

i tried ur example program.after submiting it ,i got maxcc=0 and vsam return code=0.but still i find difficulty in catalognig the data set. Because
data set was not cataloged (or) created after getting maxcc=0 and vsam return code=0.Then i cataloged the the data set using Iehprogm.
After that data set appeared in the data set list.then i tred to edit the data set ,but the operating system says data set not found



please clarify my doubt. thanking u.
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us