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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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