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
 

 

Can we write file names into another ps or gdg file which wa

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

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Wed Mar 04, 2009 9:32 am    Post subject: Can we write file names into another ps or gdg file which wa
Reply with quote

Can we write file names into another ps or gdg file which was created previously

ex :
step1 << creates two files like below during processing

Code:
input.trans(+1)
input.report(+1)


step2 << has to write the above files with complete generation into another ps or gdg file
is this possible
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: Wed Mar 04, 2009 4:56 pm    Post subject: Reply to: Can we write file names into another ps or gdg fil
Reply with quote

This previous topic has a few ideas.
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Thu Mar 05, 2009 7:44 am    Post subject: Can we write file names into another ps or gdg file which wa
Reply with quote

Code:
//STEP10  EXEC PGM=IDCAMS                               
//DD1       DD DSN=AAA.BBB.CCC.INPUT1(0),DISP=SHR
//DD2       DD DSN=AAA.BBB.CCC.INPUT2(0),DISP=SHR
//SYSPRINT  DD DSN=HLQ...,
//             DISP=(NEW,CATLG,DELETE),         
//             UNIT=DISK,SPACE=(TRK,(1,1),RLSE),
//             DCB=(RECFM=FB,...)
//SYSIN     DD *                                         
 PRINT INFILE(DD1) COUNT(0) CHAR     
 PRINT INFILE(DD1) COUNT(0) CHAR                     
/*       


Tried the above code and it is writing entire sysprint details, but i want only the dataset name or gdg with complete generation only.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Mar 05, 2009 7:53 am    Post subject:
Reply with quote

Hi,

you missed this bit
Quote:
then process that file how you need to in your report



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

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Thu Mar 05, 2009 2:29 pm    Post subject: Can we write file names into another ps or gdg file which wa
Reply with quote

I didin't get u
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: Thu Mar 05, 2009 9:08 pm    Post subject:
Reply with quote

Hello,

You need to read the idcams output (sysprint in the example posted) and pull out the info you want to use.
Back to top
View user's profile Send private message
r2k1984

New User


Joined: 21 Jun 2005
Posts: 69
Location: chennai

PostPosted: Mon Mar 09, 2009 3:05 pm    Post subject: Reply to: Can we write file names into another ps or gdg fil
Reply with quote

put a include cond with sort in next step
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 Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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