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
 

 

REPRO to insert records into a Vsam file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: REPRO to insert records into a Vsam file
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 27, 2009 11:38 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 27, 2009 11:53 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
Reply with quote

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

Senior Member


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

PostPosted: Thu Aug 27, 2009 5:05 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Aug 27, 2009 5:09 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Thu Aug 27, 2009 6:19 pm    Post subject:
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    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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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