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 Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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