Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to apend a value passed by a program to a dataset.
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: 3158
Location: Tucson AZ

PostPosted: Sat Dec 02, 2006 6:21 pm    Post subject:
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    Post subject: Re: How to apend a value passed by a program to a dataset.
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: 3158
Location: Tucson AZ

PostPosted: Mon Dec 04, 2006 4:53 pm    Post subject:
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    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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us