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: 2455
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: 198
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. copy file 2 data into file1 for match... DFSORT/ICETOOL 4
No new posts BNDS and Overlay command TSO/ISPF 9
No new posts ADR324E-VOL/DATASET SPECIFIED BY DDNA... JCL & VSAM 6
No new posts how to list the number of backup data... JCL & VSAM 3
No new posts JCL (SET) variables in input stream data JCL & VSAM 0
Search our Forums:

Back to Top