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: 2449
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: 197
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
No new posts Command line placement in DB2I panels TSO/ISPF 2
No new posts Capture GDG Dataset Name JCL & VSAM 10
No new posts A command to change LRECL of an exist... JCL & VSAM 7
This topic is locked: you cannot edit posts or make replies. Copy list of files from PS to another... CLIST & REXX 11
No new posts How to pass arguments in a ISPSTART c... CLIST & REXX 6
Search our Forums:

Back to Top