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
 
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: 8614
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: 8614
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 Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 1 Wed Dec 06, 2017 1:50 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

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