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

How to apend a value passed by a program to a dataset.


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

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Sat Dec 02, 2006 1:40 pm
Reply with quote

Hi,

I am generating a sequence number by a cobol program. I wan to apend the sequence number to a dataset created in the subsequent step.
I can't write a dynamic JCL to modify a skeleton jcl since my step takes a backup of a GDG generation.
While the dynamic JCl executes, new GDGs may be created and that would create a problem while refering the original GDG in the dynamic JCL.


Thanks,
~Vamsi
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sat Dec 02, 2006 6:21 pm
Reply with quote

Can't you just open the dataset as mod and write the extra record on the end?
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Mon Dec 04, 2006 4:44 pm
Reply with quote

hi William Thompson,
Sorry to say....I don;t want to apend to the dataset.
I wan to apend the DSN name.

Suppose my cobol program is returning a RETURN CODE of 005,
The next step in the proc should be have a DSN as
XXXX.YYYY.ZZZZ.SEQ005.

~Vamsi
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Dec 04, 2006 4:53 pm
Reply with quote

You want to rename the base name for a gdg?

I'm thinking with the limitations you have specified, no.
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 Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts After newcopy the CICS program user f... CICS 7
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
Search our Forums:


Back to Top