IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syncsort VB field Pull


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Barbara

New User


Joined: 21 Jan 2009
Posts: 8
Location: Baltimore, Md

PostPosted: Wed Jan 21, 2009 11:30 pm
Reply with quote

I need to pull records from 10 states. the lrecl = 13004, recfm=vb, and there are re-occurring fields. The re-occurring fields have an fixed indicator field that tell you how many times the reoccurring field will be populated.

How do I get to the data is these fields?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Jan 21, 2009 11:39 pm
Reply with quote

Hello and welcome to the forums.

It's not clear what you are trying to do. Could you please explain with a few sample input records(showing relevant fields) and the expected output out of it. While posting data use the "Code" tag provided here for better readability.
Back to top
View user's profile Send private message
Barbara

New User


Joined: 21 Jan 2009
Posts: 8
Location: Baltimore, Md

PostPosted: Wed Jan 21, 2009 11:51 pm
Reply with quote

1) I need to pull all data for NY, DC, GA. This data can be found in a field on the record that occurs up to 13 times.

2) There are five other fields that can occur from 3 to 13 times.
and pull the record.

3) All re-occurring field have a indicator field that will tell you how many time the re-occurring field will re-occur. These indicators are in the fixed prosion of the record.


My problem is, how do I locate this field show the state?[/code]
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Thu Jan 22, 2009 9:05 pm
Reply with quote

Barbara,

As Arun had previously stated, it would be more helpful if you could provide some sample input records and the desired output.

Thank you.
Back to top
View user's profile Send private message
Barbara

New User


Joined: 21 Jan 2009
Posts: 8
Location: Baltimore, Md

PostPosted: Mon Jan 26, 2009 7:52 pm
Reply with quote

I have a record with six arrays in it. I a an array indicator field that tell me how much of the array has data in it. I need to pull data from the 4th array on the record. This is the travel state code field. This can have up to 13 occurence. of this field Does this help??
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jan 26, 2009 8:35 pm
Reply with quote

Errrrmmmmmmmmmm I think that Arun and Alissa meant a graphical example rather than commentary
Back to top
View user's profile Send private message
Barbara

New User


Joined: 21 Jan 2009
Posts: 8
Location: Baltimore, Md

PostPosted: Mon Jan 26, 2009 8:38 pm
Reply with quote

I can not send a sample of the data the gov will not let me do that and the record is too long to make up something.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jan 26, 2009 8:44 pm
Reply with quote

Couldn't you just use your imagination icon_eek.gif

It doesn't have to be the actual all singing dancing live data, just a graphical representation of the way that the records are laid out, what format the fields are in, just to clarify to those that wish to help you.

Maybe something like ..........
pos 390 field occurs indicator PD 2bytes
pos 392 fields 1-n character 10 bytes

And then explain the situation.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jan 26, 2009 10:15 pm
Reply with quote

Hello,

Quote:
I can not send a sample of the data the gov will not let me do that and the record is too long to make up something.
Basically a "cop-out". . .

If you are unwiling to do a bit of work to present somthing that reflects your requirement no one should post anything in reply. . . If anything other than a better explanation/definition of the requirement is posted, it will be deleted until the explanation/definition is posted. When you create sample data, it does not need to be "full-size" only enough to show the requirement. You need to post some sample input records and the output you want when these sample input records are processed.
Back to top
View user's profile Send private message
Barbara

New User


Joined: 21 Jan 2009
Posts: 8
Location: Baltimore, Md

PostPosted: Mon Jan 26, 2009 10:18 pm
Reply with quote

Thank you for your help
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Jan 27, 2009 12:53 am
Reply with quote

Barbara,

You dont really need to post the 'actual' data. If you could just prepare some dummy input records and post it here along with the expected output, it might help us to help you. Good luck.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
Search our Forums:

Back to Top