Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : When you specified V for RECFM parameter, LRECL value is largest record in the file plus 4 bytes. These four bytes contain the actual length of each variable length record in the file

Google
 
Web mainframegurukul.com

Need Help on Rexx Queries

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> TSO, CLIST & REXX
  View previous topic :: View next topic  
Author Message
biplabmondal2007
Member


Joined: 04 Aug 2014
Posts: 1

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon Aug 04, 2014 4:49 pm    Post subject: Need Help on Rexx Queries Reply with quote

Hi,

I need a help on a REXX code from you experts.

Req :- Suppose all member of a PDS have a record say on 20 column(in 1st row,5the row,10th row).

XYZ.PDS(Member1)

XX5001
XX5002
XX5003
.
.
.

XYZ.PDS(Member1)

XX5004
XX5005
XX5006


Desired output:-

Member1 XX5001
XX5002
XX5003

Member2 XX5004
XX5005
XX5006


I used LISTDS and OUTTRAP for listing the members,but unable to list these in a separate datasets according to my need.Plz Help.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 981

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Aug 07, 2014 3:30 pm    Post subject: Reply with quote

moved to rexx forum
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 981

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Aug 07, 2014 3:45 pm    Post subject: Reply with quote

well, ignoring the fact that files have records and not rows - which db2 has.....

i am assuming that you want to edit each member of the pds
and add the member name to the first line. --- that is what you have shown.

what do you want to do?
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
NicC
Active Member


Joined: 24 Jul 2011
Posts: 650
Location: Down on the pig farm

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Aug 08, 2014 4:51 pm    Post subject: Reply with quote

If what you want to do is add the member name to the first line of the member then you can retrieve the member currently being edited, get the first line, add the member name to that line (remember to truncate the original line as ithe edited line will have to have the same record length), rewrite the line and exit the member - all by invoking edit on the member with an initial macro doing the preceding. Are yo sure that you can lose 8 or more bytes from the first line?
_________________
Regards
Nic
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Rameshchinnu777
Member


Joined: 08 Aug 2014
Posts: 3

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Aug 08, 2014 10:58 pm    Post subject: Reply with quote

HI
i Need a rexx code to list out all the PDS when we give input as i.e TSOMK01.* (HLQ.*)

that should be consoliated in one PS file.

could please help on it.

Thanks
Ramesh
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Rameshchinnu777
Member


Joined: 08 Aug 2014
Posts: 3

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Aug 08, 2014 11:06 pm    Post subject: Reply with quote

HI,
i Need a rexx code to list out all the PDS when we give input as i.e TSOMK01.* (HLQ.*)

that should be consoliated in one PS file.

could please help on it.

Because i have to list out through option 3.4 then suppose it may shows 500 PDS if so

create one new PS and mentioned all the pds one by one with HSM cmds like

HSEND BDELETE 'TSOMK01.ES26.RAMESH' ALL

likewise code one by one for all PDS and deleted them

I need REXX code to list out all PDS when we give the input as (HLQ.*) i.e it will list all the PDS then i have to pass this cmd to delete them by using array variable..
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
NicC
Active Member


Joined: 24 Jul 2011
Posts: 650
Location: Down on the pig farm

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Aug 13, 2014 4:11 pm    Post subject: Reply with quote

Do not tack your topic onto the back of another topic. Start your own topic. Hopefrully someone will split this off the original topic.

To your request - you ask for the code - however that is not what a forum is for. So, what have you tried so far? Where is your sticking point?
_________________
Regards
Nic
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Jan 21, 2016 12:09 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> TSO, CLIST & REXX 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


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-7686.html