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
 

 

access a file's data in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
shankarm

Active User


Joined: 17 May 2010
Posts: 175
Location: India

PostPosted: Thu Dec 15, 2011 8:13 pm    Post subject: access a file's data in JCL
Reply with quote

All,

I am allocating a file dynamically using assembler and the file is named dynamically with time stamp and FTP'ed to a server.

Say, i have three steps,
step1
step2
step3

step1: Calls Assembler program - allocates two files internally
File1 - has application specific data
File2 - has the dynamically created FTP card with File1's name in it.

Note: File1's name will change in every run and the FTP card will be created in this step with file1's name in it.

step2: FTP's the file (file1) to a server using the FTP card (file2) created in step1.

Step3: I am trying to access file1 in JCL as a DD statement. How do i access this? Note: the file name i want is available inside file2 but i want to access this in JCL. is there any way to do this?

Note: I dont want to copy the file content into another file and use it in the jcl, i want to use the same file name. Please help.

Please help.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Dec 15, 2011 8:29 pm    Post subject:
Reply with quote

make step 3 a separate job,
submitted after step 2, via intrudr
the jcl being modified (dd dsn) by step1.

you can not change jcl after it has been processed by jes and the job is started by the initiater.
actually, you can not change the jcl once it has been submitted to jes.

and don't tell me a site that allows the idiocy of dynamic filenames not documented via dd statements
does not allow submission of a job by a preceding job.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Thu Dec 15, 2011 9:00 pm    Post subject: Reply to: access a file's data in JCL
Reply with quote

I don't understand. Why does the source dataset name have to change? Why can't it be static, and just let the target filename change?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Thu Dec 15, 2011 9:36 pm    Post subject:
Reply with quote

Kevin, are you actually questioning THE REQUIREMENT? icon_biggrin.gif
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Fri Dec 16, 2011 2:32 am    Post subject:
Reply with quote

Robert Sample wrote:
Kevin, are you actually questioning THE REQUIREMENT? icon_biggrin.gif


Actually, I'm fine with the requirement. It's the proposed solution I'm questioning. This isn't really that difficult a process to figure out.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Dec 16, 2011 4:01 am    Post subject: Reply to: access a file's data in JCL
Reply with quote

Quote:
It's the proposed solution I'm questioning. This isn't really that difficult a process to figure out.
Yup !

Maybe there are bonus points for overly complicating the implementation. . . icon_confused.gif

Or i've gotten lost again. . . icon_cool.gif

d
Back to top
View user's profile Send private message
shankarm

Active User


Joined: 17 May 2010
Posts: 175
Location: India

PostPosted: Fri Dec 16, 2011 10:28 am    Post subject:
Reply with quote

The requirement is given by the client themselves, They want us to dynamically create the source and destination file name.


Our standerda say, we cannot submit jobs internally
Quote:

make step 3 a separate job,
submitted after step 2, via intrudr
the jcl being modified (dd dsn) by step1.


I can make step 3 a seperate job but how will i access the file name in JCL(step3 - which is a seperate job)?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Dec 16, 2011 11:59 am    Post subject:
Reply with quote

Hello,

Create the jcl (or the filename) for step3 before step3 is entered into the system. I believe with a bit of research with your scheduling people, you may be able to do this with relative ease.

Another possibility is that the "step3 info" be created early in the run and referenced in "step3".

Most of the systems i work with "send" files and do not dynamically allocate the files via assembler. . .
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


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