Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts Question about dataset sequence numbe... harisukumaran JCL & VSAM 23 Tue May 29, 2018 9:31 am
No new posts How to convert 2 bytes into single by... pkmurali DB2 6 Fri May 25, 2018 1:41 pm
No new posts Cobol program till a given time or fo... ankita agarwal COBOL Programming 7 Fri May 18, 2018 2:24 pm
No new posts Program usage statistics? John Poulakos CICS 6 Wed May 16, 2018 2:22 am

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