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
 
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 How to select record x+7 or x+2 based... JoAnn Kulcyk SYNCSORT 6 Tue Jan 16, 2018 10:49 pm
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

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