Need the solution urgently

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
karthik.dg
Member
Posts: 3
Joined: Fri Feb 13, 2009 9:37 am

Need the solution urgently

Post by karthik.dg » Fri Feb 13, 2009 9:45 am

Hi,

First I will explain you my requirement.

Through JCL, I want to read the data between 50th to 75th position from a PS file and want to assign this value to a symbolic parameter.

Could you please let me know how I can do this using JCL.

Thanks,
Karthik

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Mon Feb 16, 2009 10:46 am

Hi,

Please show an example of input & what is expected, with LRECL, RECFM & cleary state the rules.

PS. Please aviod using "urgent" in your queris.
Last edited by Anuj Dhawan on Mon Feb 16, 2009 4:57 pm, edited 1 time in total.
Regards,
Anuj

karthik.dg
Member
Posts: 3
Joined: Fri Feb 13, 2009 9:37 am

Post by karthik.dg » Mon Feb 16, 2009 4:50 pm

Thanks for your reply.

Suppose the data in the file is as below..

karthikdg1234567890abcdefghijklmnopqrstuvwxyz

I want to read the data from a to e(i.e.abcde value) and then I want to assign this value to a symbolic variable so that i can use this value as a qualifier in a DSN name.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Fri Mar 06, 2009 12:56 pm

Hi,

This
karthik.dg wrote:Suppose the data in the file is as below..

karthikdg1234567890abcdefghijklmnopqrstuvwxyz
and this
want to assign this value to a symbolic variable so that i can use this value as a qualifier in a DSN name.
I'm confused - HLQ can be of only 8-characters...

May be what you are trying to do is a way to achieve what you want to do but not the only way for sure - if you tell us what is the actual requirement, some one will be around with a better suggestion...
Regards,
Anuj

udaya00
Member
Posts: 6
Joined: Wed Apr 08, 2009 9:46 am

Post by udaya00 » Tue May 05, 2009 10:25 am

Hi anuj,
Any Level qualifier can have maximum of 8 character.

As per my understanding requirement is:

To read some position from x to y from input file (which is less than 8 char..than only we can use it as qualifier) and use this word as high level qualifier.

thanks,
uday

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Tue May 05, 2009 1:07 pm

Hi,
udaya00 wrote:Any Level qualifier can have maximum of 8 character.
Yes that's correct and I know. From the perspective of this thread I kept the discussion to HLQ only . . . :)
To read some position from x to y from input file (which is less than 8 char..than only we can use it as qualifier) and use this word as high level qualifier.
Yes - this is evident but I was expecting OP to show some intrest so that we can work towards the solution . . . porbably combination of SYMNAMES of SORT product and SET parameter can work . . . but I didn't try that yet.
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others