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

REPRO to insert records into a Vsam file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sakthisiga
Warnings : 1

New User


Joined: 11 Jun 2009
Posts: 60
Location: Chennai

PostPosted: Thu Aug 27, 2009 11:34 am
Reply with quote

Hi all,



Ca anyone please explain me abt how to insert records into a VSAM file.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 27, 2009 11:38 am
Reply with quote

To read the IDCAMS manual, Click HERE
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Thu Aug 27, 2009 11:39 am
Reply with quote

You want to know how to copy a record using repro or you want to process it using COBOL program
Back to top
View user's profile Send private message
sakthisiga
Warnings : 1

New User


Joined: 11 Jun 2009
Posts: 60
Location: Chennai

PostPosted: Thu Aug 27, 2009 11:41 am
Reply with quote

Thanks expat, You are helping more by last one week.... Thanks a lot..
Back to top
View user's profile Send private message
sakthisiga
Warnings : 1

New User


Joined: 11 Jun 2009
Posts: 60
Location: Chennai

PostPosted: Thu Aug 27, 2009 11:42 am
Reply with quote

Hi Ketvin,


Can you please explain me the both ways to process it.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 27, 2009 11:53 am
Reply with quote

sakthisiga wrote:

Can you please explain me the both ways to process it.

What is wrong with you trying things out and then coming to the forum with your problems.

This is a HELP forum, not a do my job for me forum.
Back to top
View user's profile Send private message
sakthisiga
Warnings : 1

New User


Joined: 11 Jun 2009
Posts: 60
Location: Chennai

PostPosted: Thu Aug 27, 2009 2:00 pm
Reply with quote

Ketan Varhade wrote:
You want to know how to copy a record using repro or you want to process it using COBOL program


I want to know how to copy a record using repro..
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Thu Aug 27, 2009 2:32 pm
Reply with quote

Hi ,

Code:

//PS010    EXEC PGM=IDCAMS,REGION=0M               

//*                                                 

//SYSUT1   DD DISP=SHR,DSN=data set name IP

//*                                                 

//SYSUT2   DD DSN=data set name OP,     

//         DISP=OLD                                 

//*                                                 

//SYSIN   

SYSIN:

REPRO INFILE(SYSUT1) OUTFILE(SYSUT2)
       

//*                                                 

//SYSPRINT DD SYSOUT=&SOUTJ                         

//SYSUDUMP DD SYSOUT=&SOUTJ                         

//SYSABOUT DD SYSOUT=&SOUTJ                         

//CEE3DMP  DD SYSOUT=&SOUTJ                         

//ABENDAID DD SYSOUT=&SOUTJ                         

//SYSOUT   DD SYSOUT=&SOUTJ                         

//SYSLOG   DD SYSOUT=&SOUTJ     





Hope this help
Back to top
View user's profile Send private message
sakthisiga
Warnings : 1

New User


Joined: 11 Jun 2009
Posts: 60
Location: Chennai

PostPosted: Thu Aug 27, 2009 2:55 pm
Reply with quote

Thanks ketan... definitely it will help..
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 27, 2009 5:05 pm
Reply with quote

Code:
//PS010    EXEC PGM=IDCAMS,REGION=0M               

//*                                                 
Such sapces are not allowed in JCL stream, unless it's a typo.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Aug 27, 2009 5:09 pm
Reply with quote

Hi,

and why all these useless statements
Code:
//SYSUDUMP DD SYSOUT=&SOUTJ                         

//SYSABOUT DD SYSOUT=&SOUTJ                         

//CEE3DMP  DD SYSOUT=&SOUTJ                         

//ABENDAID DD SYSOUT=&SOUTJ                         

//SYSOUT   DD SYSOUT=&SOUTJ                         

//SYSLOG   DD SYSOUT=&SOUTJ     



Gerry
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Thu Aug 27, 2009 5:32 pm
Reply with quote

Its a TYpe error, just happen while pasting it, I will take care of it from next time onward.

The sysout are optional they may or may not be used by the uder, We can avoid it if we dont want to have them.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 27, 2009 6:19 pm
Reply with quote

Hi Sakthivel,

Your first post in this thread leaves a lot more to know. In the body of the thread, you said,
Quote:
insert records into a VSAM file.
while subject talks about "Repro". As an application engineer, they are quite different. Decide what you want to do.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top