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
 

 

insert a comment in a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
vasco ferreira

New User


Joined: 12 Jul 2008
Posts: 32
Location: sintra - portugal

PostPosted: Fri Mar 12, 2010 8:12 pm    Post subject: insert a comment in a PDS
Reply with quote

I need to insert a comment in a PDS without any input file, should I use SORT? I tried below but doesn't work.
Code:

//NAO        EXEC PGM=ICEMAN                                             
//SORTIN   DD DISP=SHR,DSN=CERGR1.LISTA
//SORTOUT DD DISP=SHR,DSN=CERGR1.LISTA
//SYSOUT   DD SYSOUT=*                                                 
//SYSIN     DD *                                                         
  SORT     FIELDS=(1,1,CH,A)                                           
  OUTREC FIELDS=(1,1,X,C'O CCID NAO ESTA')
//*
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: Fri Mar 12, 2010 8:22 pm    Post subject: Reply to: insert a comment in a PDS
Reply with quote

First of all, where's the member name that you're adding the comment to?
Back to top
View user's profile Send private message
vasco ferreira

New User


Joined: 12 Jul 2008
Posts: 32
Location: sintra - portugal

PostPosted: Fri Mar 12, 2010 8:33 pm    Post subject:
Reply with quote

Just want the comment (outrec) in the sortout.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Fri Mar 12, 2010 8:43 pm    Post subject:
Reply with quote

Hello Sintra,

It should be in CERGR1.LISTA
Back to top
View user's profile Send private message
vasco ferreira

New User


Joined: 12 Jul 2008
Posts: 32
Location: sintra - portugal

PostPosted: Fri Mar 12, 2010 8:48 pm    Post subject:
Reply with quote

Hi Guptae, yes it should...
the sortin is empty, and the sortout should appears with: O CCID NAO ESTA. This is what i want to do. Many thanks.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri Mar 12, 2010 9:30 pm    Post subject:
Reply with quote

Why would you expect any output when there is no input?
Have you tried the HEADERs or TRAILERs?
Back to top
View user's profile Send private message
vasco ferreira

New User


Joined: 12 Jul 2008
Posts: 32
Location: sintra - portugal

PostPosted: Fri Mar 12, 2010 9:35 pm    Post subject:
Reply with quote

No, colud you help me?
Back to top
View user's profile Send private message
vasco ferreira

New User


Joined: 12 Jul 2008
Posts: 32
Location: sintra - portugal

PostPosted: Fri Mar 12, 2010 9:53 pm    Post subject:
Reply with quote

Many thanks you all, i already found a way.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri Mar 12, 2010 9:59 pm    Post subject:
Reply with quote

vasco ferreira wrote:
Many thanks you all, i already found a way.
That's great, would you care to share?
Please post your solution.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Mass comment and edit elixir1986 IBM Tools 3 Thu Mar 02, 2017 10:09 pm
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts How do I right justify a string in an... rakesh17684 DB2 1 Wed Jun 08, 2016 8:01 pm
No new posts insert the same records but chancing ... danylele74 DB2 6 Mon May 02, 2016 7:22 pm


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