IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to copy a sequential dataset by using in-stream command?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
javen777

New User


Joined: 06 Mar 2015
Posts: 31
Location: china

PostPosted: Thu Feb 21, 2019 11:37 pm
Reply with quote

Dear all,

I would like to use in-stream command to copy sequential dataset to a new name which will be a file trigger of a certain OPC.

this in-stream will include old file name and newly-copied file name.

i know several ways but they are not entirely in-stream, so plz help?

thanks in advance!
Back to top
View user's profile Send private message
javen777

New User


Joined: 06 Mar 2015
Posts: 31
Location: china

PostPosted: Thu Feb 21, 2019 11:40 pm
Reply with quote

the reason i request this is, i find copying dataset successfully will make the trigger effective.

if you know any other way to make trigger effective, big welcome!

I know rename is not working for trigger(just renaming a file to trigger's name will not simply trigger the opc).

thank you
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Fri Feb 22, 2019 3:50 am
Reply with quote

I am not understanding what you mean by "in-stream" in this case. You can copy by batch job or interactively. You could put those interactive commands into a batch job. But neither of these are "in-stream".In-sttream, to me, means data in a batch job i.e. 80 byte records after a DD *.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Fri Feb 22, 2019 9:54 pm
Reply with quote

As in my reply to your previous post, it's the closing of the dataset that causes the OPC trigger. Clearly renaming a dataset does not cause it to be opened or closed.

If the only purpose of your rename is to trigger the OPC schedule though, that's an odd way to do it. Use EQQEVPGM or EQQYCAIN. Or even just use job triggering on the job in question.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts USAGE parameter of RACDCERT CONNECT c... All Other Mainframe Topics 2
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts Stream syslog to other platforms All Other Mainframe Topics 0
No new posts DB2 Image Copy DFSMS MGMTCLAS Partial... DB2 2
Search our Forums:


Back to Top