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
 

 

Sending GDG file through NDM process

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Kamaleshwaran

New User


Joined: 10 Apr 2010
Posts: 7
Location: Hyderabad

PostPosted: Thu Feb 17, 2011 3:32 am    Post subject: Sending GDG file through NDM process
Reply with quote

We are sending the GDG generation file via NDM to the remote system.

Question :
STEP1:
(=1) GDG created
STEP2:
NDM ---> GDG version file.

I need to NDM the latest generation file created in step1.
Do I need to give (0) genaration in NDM step &SRCDSN paramter or (+1) genration???

When I tried with (+1) generation, am getting error while getting the NDM statistics, but the file is transmitted.
I tried to look up the existing NDM JCL's, the JCL's contains only (0) version eventhough a new file is generated in the same JCL.
Am really confused. This is the first time am making changes in NDM process and didnt get much reference. Please help me.
Back to top
View user's profile Send private message

Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 964
Location: Richmond, Virginia

PostPosted: Thu Feb 17, 2011 8:48 am    Post subject:
Reply with quote

Kamaleshwaran -

We extend a personal invitation to you to show (use code tag please) the code you used and also, if it is not too much trouble, the exact error message you received.

This latter information can be found in the select statistics report.

Perhaps then the cause of your distress will be easier to ascertain.

Or, can you think of another way to request assistance?
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Thu Feb 17, 2011 1:58 pm    Post subject: Reply to: Sending GDG file through NDM process
Reply with quote

Kamaleshwaran, I'm trying to think this through logically.

First of all, I think that it's a poor coding design to create the dataset in one step and NDM it in the next. I'd recommend that you make that process two seperate jobs.

Now, the system is going to place an enqueue on the GDG base for your new generation, and if I recall, that enqueue stays throughout the duration of that job. Now, NDM will also place an enqueue the same way. I can't help but believe that, at this step of the job, the dataset that is enqueued would need to be the current (zero) generation, and definitely not a +1 generation, similar to the same situation if you were using an FTP process.

One thing I would do is to allocate the new generation to a DDNAME in the NDM step and have that dataset be the input to the process. As an alternative, I'd also consider the possibility of resolving the new generation to it's explicit name, and passing THAT name to the input of the process.
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Thu Feb 17, 2011 5:49 pm    Post subject:
Reply with quote

Generally, when you allocate and use a new GDG generation in a job, you have to refer to the created version as (+1) througout the job, as the dataset is not catalogued before at the end of the job.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri Feb 18, 2011 4:29 am    Post subject:
Reply with quote

Hi,

Quote:
as the dataset is not catalogued before at the end of the job.
I have to disagree with this, the dataset is catalogued at STEP end.


Gerry
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8120
Location: East Dubuque, Illinois, USA

PostPosted: Fri Feb 18, 2011 4:42 am    Post subject:
Reply with quote

GDG relative references (except for VOL=REF='gen') are resolved at the beginning of the job, hence the need to reference (+1) in all steps of the job to refer to the generation created in the job.
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Fri Feb 18, 2011 3:02 pm    Post subject:
Reply with quote

Quote:
the dataset is catalogued at STEP end

Sorry for misleading anyone, the conclusion where correct, but on an incorrect presumption.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Fri Feb 18, 2011 3:32 pm    Post subject: Reply to: Sending GDG file through NDM process
Reply with quote

Anyway I ( personal advice ) usually discourage mixing in the same job
ddname and dsname access for NEW datasets especially GDG' s
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


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