MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to add lines to mem using FILEAID/SORT?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
satyenderd
Beginner


Joined: 26 Aug 2005
Posts: 144
Topics: 73

PostPosted: Fri Nov 16, 2007 2:18 am    Post subject: How to add lines to mem using FILEAID/SORT? Reply with quote

I want to add line like Author, Creation Dated, etc to all the members of a PDS in a single shot.
Could anyone please help me in this regard? Could anyone please let me know the solution either in FILEAID or in SORT.

THANKS IN ADVANCE.
_________________
Satya
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Fri Nov 16, 2007 3:15 am    Post subject: Reply with quote

satyenderd,

Check the link below:

http://www.mvsforums.com/helpboards/viewtopic.php?t=1097&highlight=insert+line
_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
satyenderd
Beginner


Joined: 26 Aug 2005
Posts: 144
Topics: 73

PostPosted: Wed Nov 21, 2007 2:10 am    Post subject: Adding lines in members using FILEAID/SORT in a single shot Reply with quote

Thanks VIVEK, for your valuable suggestion.

Vivek I am able to add the lines.
But, I need to add 8 lines.
Could you please let me know whether it is possible to add all 8 lineS in
a single SYSIN DD.

Thanks in advance.


//STEP01 EXEC PGM=FILEAID
//DD01 DD DISP=SHR,DSN=DBASM.NEWDSN.JCL
//NEWDSN DD DISP=SHR,DSN=DBASM.TSOPDS.NEWDSN.JCL
//DD02 DD DISP=SHR,DSN=DBASM.TSOPDS.NEWDSN.JCL
//NEWDSN1 DD DISP=SHR,DSN=DBASM.TSOPDS.NEWDSN1.JCL
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//SYSIN DD *
$$DD01 USER F=JCL,WRITE=NEWDSN,
IF=(1,20,C' JOB '),
MOVE=(1,80C' '),
MOVE=(1,C'//* AUTHOR:SATYENDER'),

WRITE=NEWDSN
$$DD02 USER F=JCL,WRITE=NEWDSN1,
IF=(1,20,C' AUTHOR'),
MOVE=(1,80C' '),
MOVE=(1,C'//* CREATED BY: SATYA'),
WRITE=NEWDSN1
_________________
Satya
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Thu Nov 22, 2007 5:51 am    Post subject: Reply with quote

satyenderd,

you can insert as many lines u need using a single step:

Code:


//STEP01 EXEC PGM=FILEAID
//DD01 DD DISP=SHR,DSN=DBASM.NEWDSN.JCL
//NEWDSN DD DISP=SHR,DSN=DBASM.TSOPDS.NEWDSN.JCL
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//SYSIN DD *
$$DD01 USER F=JCL,WRITE=NEWDSN,

IF=(1,20,C' JOB '),
MOVE=(1,80C' '),
MOVE=(1,C'//* AUTHOR:SATYENDER'),

IF=(1,20,C' AUTHOR'),
MOVE=(1,80C' '),
MOVE=(1,C'//* CREATED BY: SATYA'),

WRITE=NEWDSN

_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group