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
 

 

Error when copy from VSAM(KSDS) file to PS file

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

New User


Joined: 11 Apr 2006
Posts: 41
Location: Chennai

PostPosted: Mon Apr 23, 2007 3:39 pm    Post subject: Error when copy from VSAM(KSDS) file to PS file
Reply with quote

I am trying to copy from VSAM(KSDS) file to PS file. I am getting error message. COuld you please suggest me to correct this problem.

MY JCL:
Code:

//*                                                 
//SYS1    EXEC PGM=IDCAMS,REGION=4096K             
//SYSPRINT DD SYSOUT=*                                 
//GEMS1    DD DSN=EE036.PMM.LONG.DESC,DISP=SHR     
//GEMS6    DD DSN=CV$$.T30716.BJDLDES1,             
//         DISP=(,CATLG,CATLG),                 
//         SPACE=(CYL,(250,10)),UNIT=SYSDA,         
//         DCB=*.GEMS1 
//*                             
//SYSIN DD *                                       
        REPRO -                                     
               INFILE(GEMS1) -                     
               OUTFILE(GEMS6)                       
/*                                                 
//     


ERROR Message:
IDCAMS SYSTEM SERVICES

REPRO -
INFILE(GEMS1) -
OUTFILE(GEMS6)
IDC3300I ERROR OPENING CV$$.T30716.BJDLDES1
IDC3321I ** OPEN/CLOSE/EOV ABEND EXIT TAKEN
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12

IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Apr 23, 2007 3:54 pm    Post subject:
Reply with quote

Don't code any DCB info for the output file, IDCAMS likes to define that itself for REPRO.
Back to top
View user's profile Send private message
cvadlamudi

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Mon Apr 23, 2007 3:59 pm    Post subject: Re: VSAM Copy problem
Reply with quote

Hi,

Please check the JCL it is trying to copy a PS file to VSAM file.... if so plz chk the file status... if u r not sure about vsam out file.. then delete define vsam file with the new properties.. and try to copy it..
Back to top
View user's profile Send private message
murmohk1

Senior Member


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

PostPosted: Mon Apr 23, 2007 4:04 pm    Post subject:
Reply with quote

Expat,

Quote:

Don't code any DCB info for the output file, IDCAMS likes to define that itself for REPRO.


Even without the DCB parameter, I have got the same messages. Please find my step and error messages below -

Code:
//SPLIT  EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//IPFILE DD DSN=ISTEST.MURALI.ESDS,DISP=SHR
//OPFILE DD DSN=ISTEST.MURALI.ESDS.FLATFIL1,
//    DISP=(,CATLG,CATLG),
//    SPACE=(CYL,(100,100),RLSE)    DCB=*.IPFILE
//SYSIN DD *
  REPRO INFILE(IPFILE) OUTFILE(OPFILE)
/*


Code:
IDCAMS  SYSTEM SERVICES                                           TIME: 11:29:56

  REPRO INFILE(IPFILE) OUTFILE(OPFILE)                                  00100000
IDC3300I  ERROR OPENING ISTEST.MURALI.ESDS.FLATFIL1
IDC3321I ** OPEN/CLOSE/EOV ABEND EXIT TAKEN
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12

IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Apr 23, 2007 4:05 pm    Post subject:
Reply with quote

Quote:
Please check the JCL it is trying to copy a PS file to VSAM file

The OP has said that the copy is from VSAM to PS, so what makes you think that the copy is going the other way ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Apr 23, 2007 4:16 pm    Post subject:
Reply with quote

Yeah, sorrry, I was thinking of a different problem.

That's what happens when I get up at 04:00 to fly in to work for the week, the brain malfunctions more than usual.

Try adding RECFM=VB and LRECL=xxxx, where xxxx = length or more of the longest record.
Back to top
View user's profile Send private message
sureshbabu.jv

New User


Joined: 11 Apr 2006
Posts: 41
Location: Chennai

PostPosted: Thu Apr 26, 2007 1:10 pm    Post subject: Hi Expat
Reply with quote

Thank you very much for an information. I will try!!

Suresh
Back to top
View user's profile Send private message
tweety25

New User


Joined: 16 Mar 2007
Posts: 3
Location: India

PostPosted: Thu Apr 26, 2007 2:22 pm    Post subject: Re: Error when copy from VSAM(KSDS) file to PS file
Reply with quote

In the JCL, while creating the PS file you have given DCB=*.GEMS1, and GEMS1 is a VSAM file. Hence you are getting the error.
Define the DCB for the output file
With RECFM, LRECL and BLKSIZE. it should work.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 26, 2007 2:27 pm    Post subject:
Reply with quote

Quote:
With RECFM, LRECL and BLKSIZE. it should work.

For 99.9% of PS dataset allocations, there is no need to specify the BLKSIZE parameter. The operating system will determine the optimum block size based upon the DASD hardware available.
Back to top
View user's profile Send private message
balanim

New User


Joined: 29 Nov 2006
Posts: 6
Location: India

PostPosted: Thu Apr 26, 2007 4:15 pm    Post subject:
Reply with quote

Hello
Quote:
there is no need to specify the BLKSIZE parameter


Yes expat is right no need to mention BLKSIZE system will take care of that.

While giving LRECL you should keep in mind that add 4 bytes more to your the longest record in the file.

For ex: if your longest record in the file is 250 then your LRECL will be
250+4=254, So LRECL=254 and not 250 only.

If at all you want to mention BLKSIZE then again you have add 4 bytes to LRECL so now your BLKSIZE=254+4=258.

Try this definitely it will work.

Regards
Bnim
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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