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
 

 

how to add a record at the end of a dataset

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

New User


Joined: 25 Aug 2006
Posts: 6

PostPosted: Mon Sep 11, 2006 12:08 pm    Post subject: how to add a record at the end of a dataset
Reply with quote

ei guys! just want to ask on how do you indicate that a new record will be added at the last line of a dataset. is der any jcl command that can do this?

tnx in advance!

regards,

dAmire
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Sep 11, 2006 12:16 pm    Post subject:
Reply with quote

JCL does not have any WRITE commands. However, you can invoke a program using JCL.

O.
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Mon Sep 11, 2006 3:05 pm    Post subject: Re: how to add a record at the end of a dataset
Reply with quote

Not sure what you are asking here
your topic is how to add a record

try something like this (DISPS at you discretion, assumes all LRECLS etc same)

//S01 EXEC PGM=IEBGENER,COND=(0,NE)
//SYSUT1 DD DSN=MYFILE.ORIGINAL,DISP=SHR
// DD DSN=MYFILE.LAST.LINE,DISP=SHR
//SYSUT2 DD DSN=MYFILE.PLUS.NEW.LAST.LINE,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY

but your text asks how to indicate that a record will be written, what do you mean by that?
Back to top
View user's profile Send private message
shyam_shagam

New User


Joined: 07 Sep 2006
Posts: 15
Location: india

PostPosted: Mon Sep 11, 2006 3:35 pm    Post subject: Re: how to add a record at the end of a dataset
Reply with quote

dAmire,

By using the following you can do ...........

//REPRO1 EXEC PGM=IDCAMS
//AMSDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//OLDFILE DD * ( You can give your input dataset here also )
SHYAMSUNDER 1
/*
//NEWFILE DD DSN=Give your existing Dataset to add the recods at end,DISP=MOD
//SYSIN DD *
REPRO INFILE (OLDFILE) OUTFILE (NEWFILE)
//*
*

Thank,
Shyamsunder S [/i][/b]
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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm


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