Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to copy a sequential dataset by using in-stream command?

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

New User


Joined: 06 Mar 2015
Posts: 28
Location: china

PostPosted: Thu Feb 21, 2019 11:37 pm    Post subject: how to copy a sequential dataset by using in-stream command?
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: 28
Location: china

PostPosted: Thu Feb 21, 2019 11:40 pm    Post subject:
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: 2249
Location: Hampshire, UK

PostPosted: Fri Feb 22, 2019 3:50 am    Post subject: Reply to: how to copy a sequential dataset by using in-stream command?
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: 194
Location: UK

PostPosted: Fri Feb 22, 2019 9:54 pm    Post subject: Reply to: how to copy a sequential dataset by using in-stream command?
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    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 adrdssu for copy all data robyjhl JCL & VSAM 5 Tue Nov 12, 2019 11:17 pm
No new posts DFSMShsm Dataset Recovery with B and ... Joerg.Findeisen JCL & VSAM 2 Sat Oct 05, 2019 10:01 pm
No new posts Organization of a migrated dataset saravanakmr.tpr All Other Mainframe Topics 2 Fri Sep 20, 2019 6:10 pm
No new posts What 'EF' in the CAFC command REGION,... vrkratheesh CICS 2 Wed Sep 18, 2019 4:52 pm
No new posts IEBGENER to copy from FB to VB and re... Mike.Fulton All Other Mainframe Topics 3 Sat Aug 24, 2019 7:20 am

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