View previous topic :: View next topic
|
Author |
Message |
sakthisiga Warnings : 1 New User
Joined: 11 Jun 2009 Posts: 60 Location: Chennai
|
|
|
|
Hi all,
Ca anyone please explain me abt how to insert records into a VSAM file. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
To read the IDCAMS manual, Click HERE |
|
Back to top |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
You want to know how to copy a record using repro or you want to process it using COBOL program |
|
Back to top |
|
|
sakthisiga Warnings : 1 New User
Joined: 11 Jun 2009 Posts: 60 Location: Chennai
|
|
|
|
Thanks expat, You are helping more by last one week.... Thanks a lot.. |
|
Back to top |
|
|
sakthisiga Warnings : 1 New User
Joined: 11 Jun 2009 Posts: 60 Location: Chennai
|
|
|
|
Hi Ketvin,
Can you please explain me the both ways to process it. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
sakthisiga Warnings : 1 New User
Joined: 11 Jun 2009 Posts: 60 Location: Chennai
|
|
|
|
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 |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
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 |
|
|
sakthisiga Warnings : 1 New User
Joined: 11 Jun 2009 Posts: 60 Location: Chennai
|
|
|
|
Thanks ketan... definitely it will help.. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Code: |
//PS010 EXEC PGM=IDCAMS,REGION=0M
//* |
Such sapces are not allowed in JCL stream, unless it's a typo. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
|